Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.

Commit d02d2a1

Browse files
committed
Mavenize
1 parent 94d50e9 commit d02d2a1

File tree

428 files changed

+2478
-2370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

428 files changed

+2478
-2370
lines changed

.gitignore

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
*.log
2-
*.lock
3-
*.zip
4-
*.class
5-
*.prefs
6-
*.project
7-
*.classpath
8-
*.settings/*
9-
*.bin/*
10-
*.project
11-
*.classpath
12-
*tests/*.jar
13-
.recommenders/*
14-
.metadata/*
15-
bin/*
16-
pull.sh
17-
push.sh
18-
.idea/*
1+
.metadata/**
2+
.recommenders/**
3+
.settings/**
4+
bin/**
5+
temp/**
6+
target/**
7+
8+
.classpath
9+
.project
10+
11+
# IntelliJ IDEA Project stuff
12+
.idea/
13+
out/
14+
*.iws
1915
*.iml
20-
*.bat
21-
*.txt
22-
**/Main.java
16+
17+
src/test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To rename each item takes only a single line of code. The affects of this change
2323

2424
### What needs finishing
2525

26-
This library is still a heavy WIP and the main focus is remapping classes, so some basic functionality not-pertaining to remapping still needs to be completed. For example there is no way to edit opcodes in a method.
26+
This library is still a heavy WIP and the main focus is remapping classes, so some basic functionality not-pertaining to remapping still needs to be completed. For example there is no way to edit instructions in a method.
2727

2828
### Credits
2929

pom.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>me.coley</groupId>
4+
<artifactId>reader</artifactId>
5+
<version>2.0.0</version>
6+
<properties>
7+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8+
<junit.version>5.6.2</junit.version>
9+
</properties>
10+
<dependencies>
11+
<!--- Testing -->
12+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
13+
<dependency>
14+
<groupId>org.junit.jupiter</groupId>
15+
<artifactId>junit-jupiter-api</artifactId>
16+
<version>${junit.version}</version>
17+
<scope>test</scope>
18+
</dependency>
19+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
20+
<dependency>
21+
<groupId>org.junit.jupiter</groupId>
22+
<artifactId>junit-jupiter-engine</artifactId>
23+
<version>${junit.version}</version>
24+
<scope>test</scope>
25+
</dependency>
26+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-params -->
27+
<dependency>
28+
<groupId>org.junit.jupiter</groupId>
29+
<artifactId>junit-jupiter-params</artifactId>
30+
<version>${junit.version}</version>
31+
<scope>test</scope>
32+
</dependency>
33+
</dependencies>
34+
<build>
35+
<plugins>
36+
<!-- Compiler version -->
37+
<plugin>
38+
<artifactId>maven-compiler-plugin</artifactId>
39+
<version>3.8.0</version>
40+
<configuration>
41+
<source>8</source>
42+
<target>8</target>
43+
</configuration>
44+
</plugin>
45+
</plugins>
46+
</build>
47+
</project>

src/me/coley/bmf/ClassNode.java renamed to src/main/java/me/coley/bmf/ClassNode.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,25 @@
1818
@SuppressWarnings("rawtypes")
1919
public class ClassNode implements AttributeOwner {
2020
/**
21-
* Version info.
21+
* Class major version.
2222
*/
23-
public int major = -1, minor = -1;
23+
public int major = -1;
2424
/**
25-
* Access. May be multiple combined.
25+
* Class minor version.
26+
*/
27+
public int minor = -1;
28+
/**
29+
* Access flags.
2630
*/
2731
public int access;
2832
/**
29-
* Indices in the constant pool pointing to a class name.
33+
* CP index of class.
34+
*/
35+
public int classIndex;
36+
/**
37+
* CP index of super.
3038
*/
31-
public int classIndex, superIndex;
39+
public int superIndex;
3240
/**
3341
* A list of indices in the constant pool pointing to classes that are
3442
* implemented.
@@ -289,6 +297,8 @@ public String toString() {
289297
out = out.substring(0, out.length() - interfaceCut) + " }\n";
290298
out += " Constant Pool {\n";
291299
for (Constant constant : constants) {
300+
if (constant == null)
301+
continue;
292302
out += " " + constant.toString() + "\n";
293303
}
294304
out += " }\n";

0 commit comments

Comments
 (0)