File tree Expand file tree Collapse file tree 5 files changed +31
-6
lines changed
Expand file tree Collapse file tree 5 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 1+ class Class11 {
2+ Integer x = 0 ;
3+
4+ String any () {
5+ return x .toString ();
6+ }
7+
8+ public static void main (String [] args ) {
9+ Class11 c = new Class11 ();
10+ System .out .println ( c .any () );
11+ }
12+
13+
14+ }
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ public static void main(String[] args) {
2121 System .out .println (a );
2222 System .out .println (b );
2323
24- Class7 c = new Class7 ();
25- c .x ();
26- c .y ();
27- c .z (3 );
24+ Class7 d = new Class7 ();
25+ d .x ();
26+ d .y ();
27+ d .z (3 );
2828 }
2929}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ j2py = ../bin/j2py
55
66
77python_files := $(addsuffix .py, $(notdir $(basename $(wildcard * .java) ) ) )
8- test_targets := $(notdir $(basename $(wildcard * .java) ) )
8+ test_targets := $(sort $( notdir $(basename $(wildcard * .java) ) ) )
99
1010
1111.PHONY : all clean
@@ -34,7 +34,7 @@ parsers:
3434
3535
3636% .py : % .class
37- @$(j2py ) -i $(addsuffix .java, $(basename $@ ) ) -o $@ -d configs
37+ @$(j2py ) -i $(addsuffix .java, $(basename $@ ) ) -o $@ -c configs/__init__.py - d configs
3838
3939% : % .py
4040 @bash -c " diff -q <($( python) $( addsuffix .py, $@ ) ) <(java -ea $@ )" && echo " [PASS] $@ "
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+ # -*- coding: utf-8 -*-
3+ from java2python .config import default
4+
5+
6+ moduleOutputSubs = default .moduleOutputSubs + [
7+ (r'import java\.util' , r'' ),
8+ (r'first\ \=\ T\(\)' , 'first = None' ),
9+ (r'second\ \=\ S\(\)' , 'second = None' ),
10+ ]
Original file line number Diff line number Diff line change 55
66modulePrologueHandlers = default .modulePrologueHandlers + [
77 'from configs.overloading import overloaded' ,
8+ 'from abc import ABCMeta, abstractmethod' ,
89]
910
1011
You can’t perform that action at this time.
0 commit comments