Answer the question
In order to leave comments, you need to log in
How to make normal sources in IDEA?
I'm new to java and often want to look at the source of standard classes (I use IDEA). But when I look, it feels like they are auto-generated or decompiled... For example
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package java.io;
public abstract class OutputStream implements Closeable, Flushable {
public OutputStream() {
}
public abstract void write(int var1) throws IOException;
public void write(byte[] var1) throws IOException {
this.write(var1, 0, var1.length);
}
public void write(byte[] var1, int var2, int var3) throws IOException {
if(var1 == null) {
throw new NullPointerException();
} else if(var2 >= 0 && var2 <= var1.length && var3 >= 0 && var2 + var3 <= var1.length && var2 + var3 >= 0) {
if(var3 != 0) {
for(int var4 = 0; var4 < var3; ++var4) {
this.write(var1[var2 + var4]);
}
}
} else {
throw new IndexOutOfBoundsException();
}
}
public void flush() throws IOException {
}
public void close() throws IOException {
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question