@@ -126,9 +126,7 @@ public ArtifactStoreFileSystem( ArtifactStore store )
126
126
this .store = store ;
127
127
}
128
128
129
- /**
130
- * {@inheritDoc}
131
- */
129
+ @ Override
132
130
public Entry [] listEntries ( DirectoryEntry directory )
133
131
{
134
132
if ( getRoot ().equals ( directory ) )
@@ -164,7 +162,6 @@ public Entry[] listEntries( DirectoryEntry directory )
164
162
String groupId = path .replace ( '/' , '.' );
165
163
166
164
// get all the groupId's that start with this groupId
167
- String groupIdPrefix = groupId + "." ;
168
165
Set <String > groupIds = new TreeSet <>( store .getGroupIds ( groupId ) );
169
166
for ( String name : groupIds )
170
167
{
@@ -223,9 +220,7 @@ public Entry[] listEntries( DirectoryEntry directory )
223
220
return result .toArray (new Entry [0 ]);
224
221
}
225
222
226
- /**
227
- * {@inheritDoc}
228
- */
223
+ @ Override
229
224
protected Entry get ( DirectoryEntry parent , String name )
230
225
{
231
226
String path = "/" ;
@@ -299,7 +294,8 @@ else if ( ARCHETYPE_CATALOG.matcher( path ).matches() )
299
294
matcher .group ( 10 ) );
300
295
try
301
296
{
302
- store .get ( artifact );
297
+ // check if artifact exist
298
+ store .getSize ( artifact );
303
299
return new ArtifactFileEntry ( this , parent , artifact , store );
304
300
}
305
301
catch ( IOException | ArtifactNotFoundException e )
@@ -325,7 +321,8 @@ else if ( ARCHETYPE_CATALOG.matcher( path ).matches() )
325
321
matcher .group ( 10 ), timestamp , buildNumber );
326
322
try
327
323
{
328
- store .get ( artifact );
324
+ // check if artifact exist
325
+ store .getSize ( artifact );
329
326
return new ArtifactFileEntry ( this , parent , artifact , store );
330
327
}
331
328
catch ( IOException | ArtifactNotFoundException e )
@@ -360,7 +357,8 @@ else if ( ARCHETYPE_CATALOG.matcher( path ).matches() )
360
357
Artifact artifact = new Artifact ( groupId , artifactId , version , classifier , type );
361
358
try
362
359
{
363
- store .get ( artifact );
360
+ // check if artifact exist
361
+ store .getSize ( artifact );
364
362
return new ArtifactFileEntry ( this , parent , artifact , store );
365
363
}
366
364
catch ( ArtifactNotFoundException | IOException e )
@@ -376,9 +374,7 @@ else if ( ARCHETYPE_CATALOG.matcher( path ).matches() )
376
374
}
377
375
}
378
376
379
- /**
380
- * {@inheritDoc}
381
- */
377
+ @ Override
382
378
public long getLastModified ( DirectoryEntry entry )
383
379
throws IOException
384
380
{
0 commit comments