Permalink
Browse files

NEXUS-4955 - applying APPENDIX 100% the times

  • Loading branch information...
1 parent 14a06ff commit cf1d8632f3333da2b3c9dd19215e72ce3956efd4 @velo velo committed Mar 22, 2012
@@ -326,27 +326,15 @@ protected File getHiddenTarget( final File target, final StorageItem item )
try
{
- String prefix = expandPrefix( target.getName() );
- return File.createTempFile( prefix, HIDDEN_TARGET_SUFFIX, target.getParentFile() );
+ // NEXUS-4955 add APPENDIX to make sure prefix is bigger the 3 chars
+ return File.createTempFile( target.getName() + APPENDIX, HIDDEN_TARGET_SUFFIX, target.getParentFile() );
}
catch ( IOException e )
{
throw new LocalStorageException( e.getMessage(), e );
}
}
- private String expandPrefix( String prefix )
- {
- checkNotNull( prefix );
-
- if ( prefix.length() < 3 )
- {
- prefix = prefix + APPENDIX;
- }
-
- return prefix;
- }
-
protected void mkParentDirs( Repository repository, File target )
throws LocalStorageException
{

0 comments on commit cf1d863

Please sign in to comment.