package com.puppycrawl.tools.checkstyle.checks.imports.unusedimports;

import java.lang.String; // VIOLATION
import java.lang.Math; // VIOLATION
import java.lang.Class; // VIOLATION
import java.lang.Exception; // VIOLATION
import java.lang.Runnable; // VIOLATION
import java.lang.RuntimeException; // VIOLATION
import java.lang.ProcessBuilder; // VIOLATION
import java.lang.Double; // VIOLATION
import java.lang.Integer; // VIOLATION
import java.lang.Float; // VIOLATION
import java.lang.Short; // VIOLATION

import java.lang.annotation.Annotation; // OK
import java.lang.reflect.Modifier; // OK
import java.lang.reflect.Field; // OK

import java.lang.*; // OK

public class InputUnusedImportsFromJavaLang {
    private static final String SOMETHING = "a string";
    private static final double PI =  Math.PI;

    private Class clazz = this.getClass();
    private Exception ex = new RuntimeException();
    private Runnable runnable = new Runnable() {
        @Override
        public void run() {

        }
    };
    private ProcessBuilder processBuilder = new ProcessBuilder();
    private Modifier modifier = new Modifier();
    private Field field;
    private Annotation annotation;

    public static void main(String[] args) {
        Double d = new Double(0.0d);
        Float f = new Float(0.1f);
        Integer i = new Integer(1);
        Short s = Short.MIN_VALUE;
    }
}

@@ -1094,17 +1094,21 @@
 ate 
-M
+int m
 odifier 
 modi
@@ -1107,31 +1107,32 @@
 ier 
-m
+= M
 odifier
- = new 
+.field
 Modifier
 ();%0A
@@ -1127,16 +1127,17 @@
 Modifier
+s
 ();%0A    

update test inputs for JDK15