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$ }
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() {
1
boolean isWinXP() {
2
		return "Windows 95".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
2
		return "Windows XP".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
3
	}
3
	}
4
	/**
4
	/**
5
	 * Returns whether the underlying operating system is Windows 98.
5
	 * Returns whether the underlying operating system is Linux.
6
	 * 
6
	 * 
7
	 * @return isWin98
7
	 * @return isLinux
8
	 */
8
	 */
9
	public static boolean isWin98() {
9
	public static boolean isLinux() {
10
		return "Windows 98".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
10
		return "Linux".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
11
	}
11
	}
12
	/**
12
	/**
13
	 * Returns whether the underlying operating system is Windows ME.
13
	 * Returns whether the underlying operating system is Solaris.
14
	 * 
14
	 * 
15
	 * @return isWinME
15
	 * @return isSolaris
16
	 */
16
	 */
17
	public static boolean isWinME() {
17
	public static boolean isSolaris() {
18
		return "Windows ME".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
18
		return "Solaris".equalsIgnoreCase(System.getProperty(OS_NAME)); //$NON-NLS-1$
19
	}
19
	}
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