diff options
author | Liam Miller-Cushon <cushon@google.com> | 2021-01-19 12:07:55 -0800 |
---|---|---|
committer | Javac Team <javac-team+copybara@google.com> | 2021-01-19 12:08:25 -0800 |
commit | ffe8d01aa9a5233b764bb78845a5cbf3ce49da28 (patch) | |
tree | 80954e789d8f2f62889217edeb3ec4b0724a5472 /java/com/google/turbine/bytecode/ClassWriter.java | |
parent | b470d5313912ff137c743e0f56515768136ddcc8 (diff) | |
download | turbine-ffe8d01aa9a5233b764bb78845a5cbf3ce49da28.tar.gz |
Add private constructors for classes that aren't intended to be instantiated
PiperOrigin-RevId: 352623709
Diffstat (limited to 'java/com/google/turbine/bytecode/ClassWriter.java')
-rw-r--r-- | java/com/google/turbine/bytecode/ClassWriter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/com/google/turbine/bytecode/ClassWriter.java b/java/com/google/turbine/bytecode/ClassWriter.java index c3490ca..de975f2 100644 --- a/java/com/google/turbine/bytecode/ClassWriter.java +++ b/java/com/google/turbine/bytecode/ClassWriter.java @@ -27,7 +27,7 @@ import com.google.turbine.model.Const.Value; import java.util.List; /** Class file writing. */ -public class ClassWriter { +public final class ClassWriter { private static final int MAGIC = 0xcafebabe; private static final int MINOR_VERSION = 0; @@ -124,4 +124,6 @@ public class ClassWriter { result.write(body.toByteArray()); return result.toByteArray(); } + + private ClassWriter() {} } |