CPD Results

The following document contains the results of PMD's CPD 7.17.0.

Duplications

File Line
de/spiritscorp/datasync/controller/SyncJobService.java 83
de/spiritscorp/datasync/controller/SyncJobService.java 165
context.setStatusMessage( "Synchronisation gestartet. Scanne Verzeichnisse..." );
		context.clearLog();

		final Map<Path, FileAttributes> sourceMap = Model.createMap();
		final Map<Path, FileAttributes> destMap = Model.createMap();
		final Map<Path, FileAttributes> failMap = Model.createMap();
		final Preference pref = context.getPreference();
		final Model model = new Model( new Logger(), sourceMap, destMap );
		final Long[] stats = new Long[4];

		final Thread worker = new Thread( () -> {
			long startTime = System.nanoTime();
			try {
				final Path startDestPath = pref.getStartDestPath();
File Line
de/spiritscorp/datasync/controller/SyncJobService.java 115
de/spiritscorp/datasync/controller/SyncJobService.java 189
if( Thread.currentThread().isInterrupted() ) throw new InterruptedException();

				appendLogData( context, uiLog.formatMaps( pref.getScanMode(), sourceMap, destMap, failMap ) );
				appendLogData( context, String.format( "Quelldateien: %d Stück und Zieldateien: %d Stück", stats[0], stats[1] ) );
				appendLogData( context, String.format( "Größe aller Quelldateien: %s | Größe aller Zieldateien: %s", uiLog.getReadableBytes( stats[2] ), uiLog.getReadableBytes( stats[3] ) ) );
				appendLogData( context, String.format( "Fehlerhafter Zugriff: %d", failMap.size() ) );