File: NewInstance3.java

package info (click to toggle)
eclipse-jdt-ui 4.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 93,280 kB
  • sloc: java: 831,977; xml: 14,578; jsp: 33; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//selection: 11, 32, 11, 47
//name: hashMap -> hashMap
package simple;

import java.util.Map;
import java.util.HashMap;


public class NewInstance3 {
	Map<?, ?> test() {
		Map<String, String> m= new HashMap<>();
		return m;
	}

	public static void test1(String[] args) {
		new NewInstance3().test();
	}

	public static Map<?, ?> test2(NewInstance3 a) {
		Map<?, ?> bar= a.test();
		return bar;
	}

	int test3(int a) {
		test();
		return a;
	}
}