Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified sources/net.sf.j2s.core/dist/swingjs/SwingJS-site.zip
Binary file not shown.
Binary file modified sources/net.sf.j2s.core/dist/swingjs/net.sf.j2s.core.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion sources/net.sf.j2s.core/dist/swingjs/timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20180816081255
20180819230621
Binary file modified sources/net.sf.j2s.core/dist/swingjs/ver/3.2.2/SwingJS-site.zip
Binary file not shown.
Binary file modified sources/net.sf.j2s.core/dist/swingjs/ver/3.2.2/net.sf.j2s.core.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion sources/net.sf.j2s.core/dist/swingjs/ver/3.2.2/timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20180816081255
20180819230621
1,180 changes: 530 additions & 650 deletions sources/net.sf.j2s.core/src/net/sf/j2s/core/Java2ScriptVisitor.java

Large diffs are not rendered by default.

Binary file modified sources/net.sf.j2s.java.core/dist/SwingJS-site.zip
Binary file not shown.
4 changes: 3 additions & 1 deletion sources/net.sf.j2s.java.core/src/java/awt/Color.java
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,8 @@ public static Color getColor(String nm, int v) {
return new Color((i >> 16) & 0xFF, (i >> 8) & 0xFF, (i >> 0) & 0xFF);
}



/**
* Converts the components of a color, as specified by the HSB
* model, to an equivalent set of values for the default RGB model.
Expand Down Expand Up @@ -854,7 +856,7 @@ public static int HSBtoRGB(float hue, float saturation, float brightness) {
r = g = b = (int) (brightness * 255.0f + 0.5f);
} else {
float h = (hue - (float)Math.floor(hue)) * 6.0f;
float f = h - (float)java.lang.Math.floor(h);
float f = h - (float)Math.floor(h);
float p = brightness * (1.0f - saturation);
float q = brightness * (1.0f - saturation * f);
float t = brightness * (1.0f - (saturation * (1.0f - f)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static private DataFlavor createConstant(String mt, String prn) {
* mimeType = "application/x-java-serialized-object"
* </pre>
*/
public static final DataFlavor stringFlavor = createConstant(java.lang.String.class, "Unicode String");
public static final DataFlavor stringFlavor = createConstant(String.class, "Unicode String");

/**
* The <code>DataFlavor</code> representing a Java Image class, where:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
*/

package java.awt.font;
import java.lang.String;

/**
* The <code>TextHitInfo</code> class represents a character position in a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public boolean isIdentity() {
public static final TransformAttribute IDENTITY = new TransformAttribute(null);

private void writeObject(java.io.ObjectOutputStream s)
throws java.lang.ClassNotFoundException,
throws ClassNotFoundException,
java.io.IOException
{
// sigh -- 1.3 expects transform is never null, so we need to always write one out
Expand Down
2 changes: 2 additions & 0 deletions sources/net.sf.j2s.java.core/src/java/awt/geom/Arc2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,8 @@ public PathIterator getPathIterator(AffineTransform at) {
*/
@Override
public int hashCode() {
// note that java.lang. is required here because
// "Double" refers to something else.
long bits = java.lang.Double.doubleToLongBits(getX());
bits += java.lang.Double.doubleToLongBits(getY()) * 37;
bits += java.lang.Double.doubleToLongBits(getWidth()) * 43;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

@SuppressWarnings("serial")
public class NoninvertibleTransformException extends java.lang.Exception {
public class NoninvertibleTransformException extends Exception {
/**
* Constructs an instance of
* <code>NoninvertibleTransformException</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* process the image.
*/
@SuppressWarnings("serial")
public class ImagingOpException extends java.lang.RuntimeException {
public class ImagingOpException extends RuntimeException {

/**
* Constructs an <code>ImagingOpException</code> object with the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* invalid layout information in the {@link Raster}.
*/
@SuppressWarnings("serial")
public class RasterFormatException extends java.lang.RuntimeException {
public class RasterFormatException extends RuntimeException {

/**
* Constructs a new <code>RasterFormatException</code> with the
Expand Down
Loading