Skip to content

Commit b806140

Browse files
hansonrhansonr
authored andcommitted
unnecessary java.lang. removed
1 parent d59d845 commit b806140

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

sources/net.sf.j2s.java.core/src/java/awt/Color.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,8 @@ public static Color getColor(String nm, int v) {
821821
return new Color((i >> 16) & 0xFF, (i >> 8) & 0xFF, (i >> 0) & 0xFF);
822822
}
823823

824+
825+
824826
/**
825827
* Converts the components of a color, as specified by the HSB
826828
* model, to an equivalent set of values for the default RGB model.
@@ -854,7 +856,7 @@ public static int HSBtoRGB(float hue, float saturation, float brightness) {
854856
r = g = b = (int) (brightness * 255.0f + 0.5f);
855857
} else {
856858
float h = (hue - (float)Math.floor(hue)) * 6.0f;
857-
float f = h - (float)java.lang.Math.floor(h);
859+
float f = h - (float)Math.floor(h);
858860
float p = brightness * (1.0f - saturation);
859861
float q = brightness * (1.0f - saturation * f);
860862
float t = brightness * (1.0f - (saturation * (1.0f - f)));

sources/net.sf.j2s.java.core/src/java/awt/datatransfer/DataFlavor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static private DataFlavor createConstant(String mt, String prn) {
165165
* mimeType = "application/x-java-serialized-object"
166166
* </pre>
167167
*/
168-
public static final DataFlavor stringFlavor = createConstant(java.lang.String.class, "Unicode String");
168+
public static final DataFlavor stringFlavor = createConstant(String.class, "Unicode String");
169169

170170
/**
171171
* The <code>DataFlavor</code> representing a Java Image class, where:

sources/net.sf.j2s.java.core/src/java/awt/geom/Arc2D.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,8 @@ public PathIterator getPathIterator(AffineTransform at) {
14621462
*/
14631463
@Override
14641464
public int hashCode() {
1465+
// note that java.lang. is required here because
1466+
// "Double" refers to something else.
14651467
long bits = java.lang.Double.doubleToLongBits(getX());
14661468
bits += java.lang.Double.doubleToLongBits(getY()) * 37;
14671469
bits += java.lang.Double.doubleToLongBits(getWidth()) * 43;

sources/net.sf.j2s.java.core/src/java/awt/image/ImagingOpException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* process the image.
3636
*/
3737
@SuppressWarnings("serial")
38-
public class ImagingOpException extends java.lang.RuntimeException {
38+
public class ImagingOpException extends RuntimeException {
3939

4040
/**
4141
* Constructs an <code>ImagingOpException</code> object with the

0 commit comments

Comments
 (0)