Skip to content

Commit 741f930

Browse files
authored
Merge pull request #395 from ThexXTURBOXx/master
Update some stuff
2 parents a27a347 + 4ccfb60 commit 741f930

4 files changed

Lines changed: 6 additions & 34 deletions

File tree

pom.xml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@
3636
<gson.version>2.9.0</gson.version>
3737
<guava.version>31.0.1-jre</guava.version>
3838
<imgscalr-lib.version>4.2</imgscalr-lib.version>
39-
<jadx.version>1.3.2</jadx.version>
39+
<jadx.version>1.3.3</jadx.version>
4040
<janino.version>3.1.6</janino.version>
4141
<jd-gui.version>1.6.6bcv</jd-gui.version>
4242
<jgraphx.version>3.4.1.3</jgraphx.version>
4343
<js.version>21.2.0</js.version>
4444
<objenesis.version>3.2</objenesis.version>
4545
<paged-data.version>0.2.0</paged-data.version>
46-
<procyon.version>0.5.36</procyon.version>
47-
<!-- TODO: Remove snapshot version when 0.6 stable is released -->
48-
<procyon-snapshot.version>bea9e8c</procyon-snapshot.version>
46+
<procyon.version>0.6.0</procyon.version>
4947
<rsyntaxtextarea.version>3.1.6</rsyntaxtextarea.version>
5048
<semantic-version.version>2.1.1</semantic-version.version>
5149
<slf4j.version>1.7.36</slf4j.version>
@@ -239,7 +237,6 @@
239237
<artifactId>paged_data</artifactId>
240238
<version>${paged-data.version}</version>
241239
</dependency>
242-
<!-- TODO: Add back when 0.6 stable is released
243240
<dependency>
244241
<groupId>org.bitbucket.mstrobel</groupId>
245242
<artifactId>procyon-core</artifactId>
@@ -260,27 +257,6 @@
260257
<artifactId>procyon-compilertools</artifactId>
261258
<version>${procyon.version}</version>
262259
</dependency>
263-
-->
264-
<dependency>
265-
<groupId>com.github.mstrobel.procyon</groupId>
266-
<artifactId>procyon-compilertools</artifactId>
267-
<version>${procyon-snapshot.version}</version>
268-
</dependency>
269-
<dependency>
270-
<groupId>com.github.mstrobel.procyon</groupId>
271-
<artifactId>procyon-core</artifactId>
272-
<version>${procyon-snapshot.version}</version>
273-
</dependency>
274-
<dependency>
275-
<groupId>com.github.mstrobel.procyon</groupId>
276-
<artifactId>procyon-expressions</artifactId>
277-
<version>${procyon-snapshot.version}</version>
278-
</dependency>
279-
<dependency>
280-
<groupId>com.github.mstrobel.procyon</groupId>
281-
<artifactId>procyon-reflection</artifactId>
282-
<version>${procyon-snapshot.version}</version>
283-
</dependency>
284260
<dependency>
285261
<groupId>com.fifesoft</groupId>
286262
<artifactId>rsyntaxtextarea</artifactId>

src/main/java/me/konloch/kontainer/io/DiskReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public synchronized static String loadAsString(String fileName) throws Exception
6464
try (FileReader fr = new FileReader(fileName);
6565
BufferedReader reader = new BufferedReader(fr)) {
6666
for (String add = reader.readLine(); add != null; add = reader.readLine()) {
67-
s.append(EncodeUtils.unicodeToString(add)).append(System.getProperty("line.separator"));
67+
s.append(EncodeUtils.unicodeToString(add)).append(System.lineSeparator());
6868
}
6969
}
7070

src/main/java/the/bytecode/club/bytecodeviewer/gui/components/RunOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public RunOptions()
7979
getContentPane().add(mainMethodFQN);
8080
mainMethodFQN.setColumns(10);
8181

82-
JLabel lblNewLabel = new JLabel("Debug Classes (Seperate with , ):");
82+
JLabel lblNewLabel = new JLabel("Debug Classes (Separated with , ):");
8383
lblNewLabel.setBounds(10, 89, 228, 14);
8484
getContentPane().add(lblNewLabel);
8585

src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package the.bytecode.club.bytecodeviewer.plugin.strategies;
22

33
import java.io.File;
4-
import me.konloch.kontainer.io.DiskReader;
54
import org.codehaus.janino.SimpleCompiler;
65
import the.bytecode.club.bytecodeviewer.api.Plugin;
76
import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy;
@@ -35,13 +34,10 @@ public class JavaPluginLaunchStrategy implements PluginLaunchStrategy
3534
@Override
3635
public Plugin run(File file) throws Throwable
3736
{
38-
SimpleCompiler compiler = new SimpleCompiler();
39-
40-
//compile the Java source
41-
compiler.cook(DiskReader.loadAsString(file.getAbsolutePath()));
37+
SimpleCompiler compiler = new SimpleCompiler(file.getCanonicalPath());
4238

4339
//debug
44-
System.out.println(file.getName().substring(0, file.getName().length() - (".java".length())));
40+
//System.out.println(file.getName().substring(0, file.getName().length() - (".java".length())));
4541

4642
//get the class object from the compiler classloader
4743
Class<?> clazz = Class.forName(

0 commit comments

Comments
 (0)