aboutsummaryrefslogtreecommitdiff
path: root/java/com/google/turbine/bytecode/ClassWriter.java
diff options
context:
space:
mode:
authorLiam Miller-Cushon <cushon@google.com>2021-01-19 12:07:55 -0800
committerJavac Team <javac-team+copybara@google.com>2021-01-19 12:08:25 -0800
commitffe8d01aa9a5233b764bb78845a5cbf3ce49da28 (patch)
tree80954e789d8f2f62889217edeb3ec4b0724a5472 /java/com/google/turbine/bytecode/ClassWriter.java
parentb470d5313912ff137c743e0f56515768136ddcc8 (diff)
downloadturbine-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.java4
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() {}
}