Skip to content

Commit bbefa98

Browse files
hansonrhansonr
authored andcommitted
removing references to @J2SRequireImport and @J2SIgnoreImport
1 parent 943b0b1 commit bbefa98

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

sources/net.sf.j2s.java.core/src/javajs/_README.txt

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,9 @@ methods, especially).
99
-- creating (minimal) PDF files
1010
-- decoding and encoding image files
1111
-- working with binary, compound document, JSON, and zip data
12-
-- providing very efficient classes for vectors, matricies, and quaternions
12+
-- providing very efficient classes for vectors, matrices, and quaternions
1313
-- providing a java.lang.Thread subclass (JSThread) that can be used
1414
wherever a thread is necessary; note that JSThread cannot sleep(), but
1515
it provides a means of managing setTimeout callbacks that is very easy
1616
to implement.
17-
-- providing two very important annotations:
18-
19-
@J2SIgnoreImport Indicates that this class will never be used in JavaScript
20-
and thus does not need to be indicated as a dependency. In
21-
some cases, this annotation is necessary just to break a
22-
cyclical dependency that Java somehow handles, but J2S does not.
23-
24-
@J2SRequireImport Allows a SwingJS developer to work around J2S transpiler
25-
issues that for some reason it is not indicating the need for
26-
a dependent class. Typically this is because a static call
27-
to a static method in a class.
28-
29-
In addition, though, @J2SRequireImport can be used to "inject"
30-
JavaScript at a specific point in code loading. For example,
31-
swingjs.plaf.JSSlider uses the following annotation to load
32-
jQueryUI, fooling J2S to think that it is a "class" file.
33-
34-
@J2SRequireImport(swingjs.jquery.JQueryUI.class)
35-
36-
37-
All files in the javajs/util directory will be moved to j2s/JU by a build script.
3817

0 commit comments

Comments
 (0)