summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/result_of_object_allocation_ignored/ResultOfObjectAllocationIgnored.java
blob: 1185f4ddb2cae668a3b54728aef588a89505d47e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.siyeh.igtest.bugs.result_of_object_allocation_ignored;

public class ResultOfObjectAllocationIgnored {

    private ResultOfObjectAllocationIgnored() {
        super();
    }

    public static void foo() {
        new Integer(3);
    }

    void boom() {
        new Comparable<String>() {

            public int compareTo(String o) {
                return 0;
            }
        };
    }
}