summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/performance/boolean_constructor/BooleanConstructor.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/InspectionGadgets/test/com/siyeh/igtest/performance/boolean_constructor/BooleanConstructor.java')
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/performance/boolean_constructor/BooleanConstructor.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/performance/boolean_constructor/BooleanConstructor.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/performance/boolean_constructor/BooleanConstructor.java
new file mode 100644
index 000000000000..f08d4ebecc2e
--- /dev/null
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/performance/boolean_constructor/BooleanConstructor.java
@@ -0,0 +1,10 @@
+package com.siyeh.igtest.performance.boolean_constructor;
+
+public class BooleanConstructor {
+
+ void foo(boolean b) {
+ Boolean b1 = new Boolean();
+ Boolean b2 = new Boolean(b);
+ Boolean b3 = new Boolean(true);
+ }
+} \ No newline at end of file