sonar code review tool for java

Learn about sonar code review tool for java, we have the largest and most updated sonar code review tool for java information on alibabacloud.com

Jacoco is a Java code coverage statistics Tool __java

Jacoco is a Java Code Coverage statistics tool, see: http://www.eclemma.org/jacoco/ Jacoco is a free Code coverage library for Java, which has been created from the Eclemma team based on the lessons learned F Rom using and integration existing libraries for many years.

Java Code generation Tool Rapid-generate application two __java

In the last section we briefly introduced what Rapid-generate can do, and demonstrated the test code with the tool, which we will apply to our project in conjunction with MySQL. Step One: new Java Project Project, Copy the Generate.xml files and template folders in the Rapid-generate, and introduce the 3 jar packages on which you rely, Freemarker.jar,mysql-connec

Android Source Code development tool--java source debugging (based on 4.1.2)

Original address: http://blog.csdn.net/jinzhuojun/article/details/8868038 debugging Android Java source codeThe back garden of the straw hat--neoWritten in the previous words: Here is mainly to debug Java source code, should be said to be in the system_process after the source, which for debugging and modification frameworks layer of people is really a weapon, bu

Java code statistics Tool

Java was originally designed to collect statistics on the number of Java code lines written in its own code lines. The function is very simple. It provides a file path and counts the total number of lines of code, comment lines, empty lines, and so on. Implementation: Typica

Java Common tool Class (calculation MD5, verification code random generation, Days difference value calculation)

generateverify Code (int verifysize) {return Generateverifycode (verifysize, verify_codes);} /** * Generate verification code using the specified source * * @param verifysize * CAPTCHA length * @param sources * Verification code word mnemonic * @return */public static String Generateverifycode (int verifysize, string Sources) {if (sources = = NULL | | sources.le

Java Application System Tool shortcut Tray Instance Code _java

1. Open various System Tools2. Timed shutdown (reboot, sleep not implemented, please refer to the above two articles to expand themselves)3. Simple File operation Copy Code code as follows: [Java] Package com.cxy.f; Import Java.awt.Image; Import Java.awt.MenuItem; Import Java.awt.PopupMenu; Import Java.awt.SystemTray; Import Java.awt.Toolkit;

Java QR code generation tool Class

*/ Public StaticString decode (BufferedImage bufferedimage)throwsdecodingfailedexception, unsupportedencodingexception{qrcodedecoder decoder=NewQrcodedecoder (); return NewString (Decoder.decode (NewMyqrcodeimage (BufferedImage)), "Utf-8"); } /*** Image Zoom*/ Private StaticBufferedImage Resize (bufferedimage image,intsize) {BufferedImage BufferedImage=Newbufferedimage (size, size, BUFFEREDIMAGE.TYPE_INT_RGB); Graphics2D GS=Bufferedimage.creategraphics (); Gs.setbackground

Java QR code generation tool

Import Java.awt.image.bufferedimage;import java.io.file;import java.io.ioexception;import java.util.Hashtable; Import Java.util.map;import Javax.imageio.imageio;import Com.google.zxing.barcodeformat;import Com.google.zxing.binarybitmap;import Com.google.zxing.decodehinttype;import Com.google.zxing.EncodeHintType; Import Com.google.zxing.luminancesource;import Com.google.zxing.multiformatreader;import Com.google.zxing.multiformatwriter;import Com.google.zxing.readerexception;import Com.google.zxi

Java version logo business card Two-dimensional code generation tool class

packagecom.zzq;importjava.awt.BasicStroke;importjava.awt.Color;import Java.awt.font;importjava.awt.graphics;importjava.awt.graphics2d;importjava.awt.image;import java.awt.Shape;importjava.awt.font.FontRenderContext;importjava.awt.geom.AffineTransform; importjava.awt.geom.rectangle2d;importjava.awt.geom.roundrectangle2d;import java.awt.image.bufferedimage;importjava.io.file;importjava.io.outputstream;import java.util.hashtable;importjava.util.random;importjavax.imageio.imageio;import com.google.z

Java HTTP Request Tool class code (HTTPS supported)

(); if(Params! =NULL) { for(EntryE:params.entryset ()) {Parambbuilder.append (E.getkey ()). Append ("="). Append (Urlencoder.encode (string.valueof (E.getvalue ()), "UTF-8")). Append (""); } Parambbuilder.deletecharat (Parambbuilder.length ()-1); } //Dataoutputstream.writebytes writes a 16-bit Unicode character in a string as a 8-bit character in the streamout.writebytes (parambbuilder.tostring ()); Out.flush (); Reader=NewBufferedReader (NewInp

Java code uses regular validation and common tool methods

) { Pattern p = pattern.compile ("^[0-9]{11}$"); Matcher m = p.matcher (value); Boolean IsOK = M.find (); return IsOK; }4. Create a random numberpublic static int Buildrandom (int length) {int num = 1;double random = Math.random (); if (Random 5. Get the model, browser type public static String Gettypeas (httpservletrequest request) { string typeas= request.getheader ("User-agent" ); if (Typeas.equals ("") | | Typeas==null) {typeas= "nothing";} return typeas; }5. Get the IP

Java QR Code tool class

Private StaticFinalintBLACK =0xff000000; Private StaticFinalintWhite =0xFFFFFFFF; PrivateMatrixtoimagewriter () {} Public Staticbufferedimage tobufferedimage (Bitmatrix matrix) {intwidth =matrix.getwidth (); intHeight =matrix.getheight (); BufferedImage Image=Newbufferedimage (width, height, bufferedimage.type_int_rgb); for(intx =0; x ) { for(inty =0; Y {Image.setrgb (x, y, matrix).Get(x, y)?black:white); } } returnimage; } Public Static voidWriteToFile (Bitmatrix matrix

Java Response Result Tool class, customizable response code, content, Response message

/*** Response Structure* @author Yliu*/public class ResultutilResponding to business statusPrivate Integer status;Response messagePrivate String msg;Data in the responsePrivate T data;Public Integer GetStatus () {return status;}public void SetStatus (Integer status) {This.status = status;}Public String getmsg () {return msg;}public void Setmsg (String msg) {this.msg = msg;}Public T GetData () {return data;}public void SetData (T data) {This.data = data;} public resultutil (Integer status, Strin

A Java ETL Tool project: jmyetl is launched on Google Code.

In the past, we used the underlying C-API of each database as wrapping to realize the function of data import and export between several heterogeneous databases. However, the code is complex and it is inconvenient to open source. In the afternoon, a simple data extraction program was written in Java to port the MySQL database to Sybase ASE. Put it open-source, put it on: http://code.google.com/p/jmyetl/ to

Total Pages: 5 1 2 3 4 5 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.