if (fFilePatterns != null && "".equals(fFilePatterns))
if (fFilePatterns != null && !"".equals(fFilePatterns))
	public Change createChange(IProgressMonitor monitor) throws CoreException {		try {			monitor.beginTask(RefactoringCoreMessages.RenameTypeRefactoring_creating_change, 4);			final DynamicValidationStateChange result= new DynamicValidationStateChange(RefactoringCoreMessages.Change_javaChanges) {				public RefactoringDescriptor getRefactoringDescriptor() {					final Map arguments= new HashMap();					arguments.put(ATTRIBUTE_HANDLE, fType.getHandleIdentifier());					arguments.put(ATTRIBUTE_NAME, getNewElementName());					if (fFilePatterns != null && "".equals(fFilePatterns)) //$NON-NLS-1$						arguments.put(ATTRIBUTE_PATTERNS, fFilePatterns);					arguments.put(ATTRIBUTE_REFERENCES, Boolean.valueOf(fUpdateReferences).toString());					arguments.put(ATTRIBUTE_QUALIFIED, Boolean.valueOf(fUpdateQualifiedNames).toString());					arguments.put(ATTRIBUTE_TEXTUAL_MATCHES, Boolean.valueOf(fUpdateTextualMatches).toString());					String project= null;					IJavaProject javaProject= fType.getJavaProject();					if (javaProject != null)						project= javaProject.getElementName();					return new RefactoringDescriptor(ID_RENAME_TYPE, project, MessageFormat.format(RefactoringCoreMessages.RenameTypeProcessor_descriptor_description, new String[] { JavaElementLabels.getElementLabel(fType, JavaElementLabels.ALL_FULLY_QUALIFIED), getNewElementName()}), null, arguments);				}			};			result.addAll(fChangeManager.getAllChanges());			if (willRenameCU()) {				IResource resource= ResourceUtil.getResource(fType);				if (resource != null && resource.isLinked()) {					result.add(new RenameResourceChange(ResourceUtil.getResource(fType), getNewElementName() + ".java")); //$NON-NLS-1$)				} else {					result.add(new RenameCompilationUnitChange(fType.getCompilationUnit(), getNewElementName() + ".java")); //$NON-NLS-1$				}			}			monitor.worked(1);			return result;		} finally {			fChangeManager= null;			fReferences= null;		}	}