@@ -58,9 +58,9 @@ class ShadowCopyAction implements CopyAction {
58
58
private final UnusedTracker unusedTracker
59
59
60
60
ShadowCopyAction (File zipFile , ZipCompressor compressor , DocumentationRegistry documentationRegistry ,
61
- String encoding , List<Transformer > transformers , List<Relocator > relocators ,
62
- PatternSet patternSet , ShadowStats stats ,
63
- boolean preserveFileTimestamps , boolean minimizeJar , UnusedTracker unusedTracker ) {
61
+ String encoding , List<Transformer > transformers , List<Relocator > relocators ,
62
+ PatternSet patternSet , ShadowStats stats ,
63
+ boolean preserveFileTimestamps , boolean minimizeJar , UnusedTracker unusedTracker ) {
64
64
65
65
this . zipFile = zipFile
66
66
this . compressor = compressor
@@ -107,7 +107,7 @@ class ShadowCopyAction implements CopyAction {
107
107
void execute (ZipOutputStream outputStream ) {
108
108
try {
109
109
stream. process(new StreamAction (outputStream, encoding, transformers, relocators, patternSet,
110
- unusedClasses, stats))
110
+ unusedClasses, stats))
111
111
processTransformers(outputStream)
112
112
} catch (Exception e) {
113
113
log. error(' ex' , e)
@@ -119,8 +119,8 @@ class ShadowCopyAction implements CopyAction {
119
119
} catch (UncheckedIOException e) {
120
120
if (e. cause instanceof Zip64RequiredException ) {
121
121
throw new Zip64RequiredException (
122
- String . format(" %s\n\n To build this archive, please enable the zip64 extension.\n See: %s" ,
123
- e. cause. message, documentationRegistry. getDslRefForProperty(Zip , " zip64" ))
122
+ String . format(" %s\n\n To build this archive, please enable the zip64 extension.\n See: %s" ,
123
+ e. cause. message, documentationRegistry. getDslRefForProperty(Zip , " zip64" ))
124
124
)
125
125
}
126
126
}
@@ -149,7 +149,7 @@ class ShadowCopyAction implements CopyAction {
149
149
private static <T extends Closeable > void withResource (T resource , Action<? super T> action ) {
150
150
try {
151
151
action. execute(resource)
152
- } catch (Throwable t) {
152
+ } catch (Throwable t) {
153
153
try {
154
154
resource. close()
155
155
} catch (IOException e) {
@@ -201,16 +201,16 @@ class ShadowCopyAction implements CopyAction {
201
201
private Set<String > visitedFiles = new HashSet<String > ()
202
202
203
203
StreamAction (ZipOutputStream zipOutStr , String encoding , List<Transformer > transformers ,
204
- List<Relocator > relocators , PatternSet patternSet , Set<String > unused ,
205
- ShadowStats stats ) {
204
+ List<Relocator > relocators , PatternSet patternSet , Set<String > unused ,
205
+ ShadowStats stats ) {
206
206
this . zipOutStr = zipOutStr
207
207
this . transformers = transformers
208
208
this . relocators = relocators
209
209
this . remapper = new RelocatorRemapper (relocators, stats)
210
210
this . patternSet = patternSet
211
211
this . unused = unused
212
212
this . stats = stats
213
- if (encoding != null ) {
213
+ if (encoding != null ) {
214
214
this . zipOutStr. setEncoding(encoding)
215
215
}
216
216
}
@@ -303,7 +303,7 @@ class ShadowCopyAction implements CopyAction {
303
303
304
304
private boolean isUnused (String classPath ) {
305
305
final String className = FilenameUtils . removeExtension(classPath)
306
- .replace(' /' as char , ' .' as char )
306
+ .replace(' /' as char , ' .' as char )
307
307
final boolean result = unused. contains(className)
308
308
if (result) {
309
309
log. debug(" Dropping unused class: $className " )
@@ -422,12 +422,12 @@ class ShadowCopyAction implements CopyAction {
422
422
try {
423
423
String mappedPath = remapper. map(element. relativePath. pathString)
424
424
transformers. find { it. canTransformResource(element) }. transform(
425
- TransformerContext . builder()
426
- .path(mappedPath)
427
- .is(is)
428
- .relocators(relocators)
429
- .stats(stats)
430
- .build()
425
+ TransformerContext . builder()
426
+ .path(mappedPath)
427
+ .is(is)
428
+ .relocators(relocators)
429
+ .stats(stats)
430
+ .build()
431
431
)
432
432
} finally {
433
433
is. close()
0 commit comments