mirror of
https://github.com/moparisthebest/fernflower
synced 2024-12-23 08:08:49 -05:00
java-decompiler: post-import cleanup (obsolete copyright option dropped)
This commit is contained in:
parent
8ef7bcb2ad
commit
1a4e48d11d
@ -37,7 +37,6 @@ import org.jetbrains.java.decompiler.util.InterpreterUtil;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.StringWriter;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
@ -268,18 +267,6 @@ public class ClassesProcessor {
|
||||
StringWriter strwriter = new StringWriter();
|
||||
clwriter.classToJava(root, new BufferedWriter(strwriter), 0);
|
||||
|
||||
if (DecompilerContext.getOption(IFernflowerPreferences.OUTPUT_COPYRIGHT_COMMENT)) {
|
||||
outwriter.write("// Decompiled by: Fernflower " + Fernflower.version);
|
||||
outwriter.write(DecompilerContext.getNewLineSeparator());
|
||||
outwriter.write("// Date: " + new SimpleDateFormat("dd.MM.yyyy HH:mm:ss").format(new Date()));
|
||||
outwriter.write(DecompilerContext.getNewLineSeparator());
|
||||
outwriter.write("// Copyright: 2008-2010, Stiver");
|
||||
outwriter.write(DecompilerContext.getNewLineSeparator());
|
||||
outwriter.write("// Home page: http://www.reversed-java.com");
|
||||
outwriter.write(DecompilerContext.getNewLineSeparator());
|
||||
outwriter.write(DecompilerContext.getNewLineSeparator());
|
||||
}
|
||||
|
||||
int index = cl.qualifiedName.lastIndexOf("/");
|
||||
if (index >= 0) {
|
||||
String packageName = cl.qualifiedName.substring(0, index).replace('/', '.');
|
||||
|
@ -72,7 +72,6 @@ public class DecompilerContext {
|
||||
mapDefault.put(IFernflowerPreferences.HIDE_EMPTY_SUPER, "1");
|
||||
mapDefault.put(IFernflowerPreferences.HIDE_DEFAULT_CONSTRUCTOR, "1");
|
||||
mapDefault.put(IFernflowerPreferences.DECOMPILE_GENERIC_SIGNATURES, "0");
|
||||
mapDefault.put(IFernflowerPreferences.OUTPUT_COPYRIGHT_COMMENT, "0");
|
||||
mapDefault.put(IFernflowerPreferences.NO_EXCEPTIONS_RETURN, "1");
|
||||
mapDefault.put(IFernflowerPreferences.DECOMPILE_ENUM, "1");
|
||||
mapDefault.put(IFernflowerPreferences.FINALLY_DEINLINE, "1");
|
||||
|
@ -25,7 +25,6 @@ public interface IFernflowerPreferences {
|
||||
String HIDE_EMPTY_SUPER = "hes";
|
||||
String HIDE_DEFAULT_CONSTRUCTOR = "hdc";
|
||||
String DECOMPILE_GENERIC_SIGNATURES = "dgs";
|
||||
String OUTPUT_COPYRIGHT_COMMENT = "occ";
|
||||
String NO_EXCEPTIONS_RETURN = "ner";
|
||||
String DECOMPILE_ENUM = "den";
|
||||
String REMOVE_GETCLASS_NEW = "rgn";
|
||||
|
Loading…
Reference in New Issue
Block a user