boolean isWin95() { return "Windows 95".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows 98. * * @return isWin98 */ public static boolean isWin98() { return "Windows 98".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows ME. * * @return isWinME */ public static boolean isWinME() { return "Windows ME".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows NT. * * @return isWinNT */ public static boolean isWinNT() { return "Windows NT".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows 2000. * * @return isWin2K */ public static boolean isWin2K() { return "Windows 2000".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows 2003. * * @return isWin2K3 */ public static boolean isWin2K3() { return "Windows 2003".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows XP. * * @return isWinXP */ public static boolean isWinXP() { return "Windows XP".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Linux. * * @return isLinux */ public static boolean isLinux() { return "Linux".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ }
boolean isWin98() { return "Windows 98".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows ME. * * @return isWinME */ public static boolean isWinME() { return "Windows ME".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows NT. * * @return isWinNT */ public static boolean isWinNT() { return "Windows NT".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows 2000. * * @return isWin2K */ public static boolean isWin2K() { return "Windows 2000".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows 2003. * * @return isWin2K3 */ public static boolean isWin2K3() { return "Windows 2003".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Windows XP. * * @return isWinXP */ public static boolean isWinXP() { return "Windows XP".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Linux. * * @return isLinux */ public static boolean isLinux() { return "Linux".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ } /** * Returns whether the underlying operating system is Solaris. * * @return isSolaris */ public static boolean isSolaris() { return "Solaris".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$ }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/base/OSInfo.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/base/OSInfo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
boolean isWin95() {
2
		return "Windows 95".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
3
	}
4
	/**
5
	 * Returns whether the underlying operating system is Windows 98.
6
	 * 
7
	 * @return isWin98
8
	 */
9
	public static boolean isWin98() {
1
boolean isWin98() {
10
		return "Windows 98".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
2
		return "Windows 98".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
11
	}
3
	}
12
	/**
4
	/**
13
	 * Returns whether the underlying operating system is Windows ME.
5
	 * Returns whether the underlying operating system is Windows ME.
14
	 * 
6
	 * 
15
	 * @return isWinME
7
	 * @return isWinME
16
	 */
8
	 */
17
	public static boolean isWinME() {
9
	public static boolean isWinME() {
18
		return "Windows ME".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
10
		return "Windows ME".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
19
	}
11
	}
20
	/**
12
	/**
21
	 * Returns whether the underlying operating system is Windows NT.
13
	 * Returns whether the underlying operating system is Windows NT.
22
	 * 
14
	 * 
23
	 * @return isWinNT
15
	 * @return isWinNT
24
	 */
16
	 */
25
	public static boolean isWinNT() {
17
	public static boolean isWinNT() {
26
		return "Windows NT".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
18
		return "Windows NT".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
27
	}
19
	}
28
	/**
20
	/**
29
	 * Returns whether the underlying operating system is Windows 2000.
21
	 * Returns whether the underlying operating system is Windows 2000.
30
	 * 
22
	 * 
31
	 * @return isWin2K
23
	 * @return isWin2K
32
	 */
24
	 */
33
	public static boolean isWin2K() {
25
	public static boolean isWin2K() {
34
		return "Windows 2000".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
26
		return "Windows 2000".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
35
	}
27
	}
36
	/**
28
	/**
37
	 * Returns whether the underlying operating system is Windows 2003.
29
	 * Returns whether the underlying operating system is Windows 2003.
38
	 * 
30
	 * 
39
	 * @return isWin2K3
31
	 * @return isWin2K3
40
	 */
32
	 */
41
	public static boolean isWin2K3() {
33
	public static boolean isWin2K3() {
42
		return "Windows 2003".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
34
		return "Windows 2003".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
43
	}
35
	}
44
	/**
36
	/**
45
	 * Returns whether the underlying operating system is Windows XP.
37
	 * Returns whether the underlying operating system is Windows XP.
46
	 * 
38
	 * 
47
	 * @return isWinXP
39
	 * @return isWinXP
48
	 */
40
	 */
49
	public static boolean isWinXP() {
41
	public static boolean isWinXP() {
50
		return "Windows XP".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
42
		return "Windows XP".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
51
	}
43
	}
52
	/**
44
	/**
53
	 * Returns whether the underlying operating system is Linux.
45
	 * Returns whether the underlying operating system is Linux.
54
	 * 
46
	 * 
55
	 * @return isLinux
47
	 * @return isLinux
56
	 */
48
	 */
57
	public static boolean isLinux() {
49
	public static boolean isLinux() {
58
		return "Linux".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
50
		return "Linux".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
59
	}
51
	}
52
	/**
53
	 * Returns whether the underlying operating system is Solaris.
54
	 * 
55
	 * @return isSolaris
56
	 */
57
	public static boolean isSolaris() {
58
		return "Solaris".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
59
	}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0