File: Fields.java

package info (click to toggle)
bsh 1.1alpha5-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 2,336 kB
  • ctags: 2,083
  • sloc: java: 16,095; makefile: 134; sh: 51
file content (16 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

public class Fields {
	public int x = 5;
	
	public static Fields getFields() {
		return new Fields();
	}

	public Fields getFields2() {
		return new Fields();
	}

	// ambiguity in field vs method
	public String ambigName = "field";
	public String ambigName() { return "method"; }
}