Skip to content

Commit

Permalink
fix: Update bee.
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Dec 31, 2021
1 parent b65eebc commit 28e91fb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/project/java/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ public class Project extends bee.api.Project {

require("org.ow2.asm", "asm");
require("com.github.teletha", "sinobu");
require("com.github.teletha", "psychopath");
require("com.github.javaparser", "javaparser-core");

require("com.github.teletha", "icymanipulator").atAnnotation();
require("com.github.teletha", "antibug").atTest();
require("com.github.teletha", "psychopath").atTest();
require("com.github.teletha", "viewtify").atTest();
}
}
18 changes: 13 additions & 5 deletions src/test/java/reincarnation/CodeVerifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ private List asList(Object array) {
}

try {
JavaCompiler compiler = new JavaCompiler(notifier);
compiler.addSource(JavaCoder.computeName(target.getEnclosingClass()), decompiled);
compiler.addClassPath(Locator.directory("target/test-classes"));
JavaCompiler compiler = JavaCompiler.with(notifier)
.addSource(JavaCoder.computeName(target.getEnclosingClass()), decompiled)
.addClassPath(Locator.directory("target/test-classes"));

ClassLoader loader = compiler.compile();
Class<T> loadedClass = (Class<T>) loader.loadClass(JavaCoder.computeName(target));
Expand Down Expand Up @@ -403,7 +403,7 @@ private void assertArray(Object expected, Object actual) {
}

/**
* @version 2018/10/04 8:48:47
*
*/
private static class Silent extends UserInterface {

Expand All @@ -414,10 +414,18 @@ private static class Silent extends UserInterface {
* {@inheritDoc}
*/
@Override
protected void write(String message) {
protected void write(int type, String message) {
this.message.append(message).append("\r\n");
}

/**
* {@inheritDoc}
*/
@Override
protected void write(Throwable error) {
error.printStackTrace();
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 28e91fb

Please sign in to comment.