@@ -58,9 +58,9 @@ class ShadowCopyAction implements CopyAction {
5858 private final UnusedTracker unusedTracker
5959
6060 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 ) {
6464
6565 this . zipFile = zipFile
6666 this . compressor = compressor
@@ -107,7 +107,7 @@ class ShadowCopyAction implements CopyAction {
107107 void execute (ZipOutputStream outputStream ) {
108108 try {
109109 stream. process(new StreamAction (outputStream, encoding, transformers, relocators, patternSet,
110- unusedClasses, stats))
110+ unusedClasses, stats))
111111 processTransformers(outputStream)
112112 } catch (Exception e) {
113113 log. error(' ex' , e)
@@ -119,8 +119,8 @@ class ShadowCopyAction implements CopyAction {
119119 } catch (UncheckedIOException e) {
120120 if (e. cause instanceof Zip64RequiredException ) {
121121 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" ))
124124 )
125125 }
126126 }
@@ -149,7 +149,7 @@ class ShadowCopyAction implements CopyAction {
149149 private static <T extends Closeable > void withResource (T resource , Action<? super T> action ) {
150150 try {
151151 action. execute(resource)
152- } catch (Throwable t) {
152+ } catch (Throwable t) {
153153 try {
154154 resource. close()
155155 } catch (IOException e) {
@@ -201,16 +201,16 @@ class ShadowCopyAction implements CopyAction {
201201 private Set<String > visitedFiles = new HashSet<String > ()
202202
203203 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 ) {
206206 this . zipOutStr = zipOutStr
207207 this . transformers = transformers
208208 this . relocators = relocators
209209 this . remapper = new RelocatorRemapper (relocators, stats)
210210 this . patternSet = patternSet
211211 this . unused = unused
212212 this . stats = stats
213- if (encoding != null ) {
213+ if (encoding != null ) {
214214 this . zipOutStr. setEncoding(encoding)
215215 }
216216 }
@@ -303,7 +303,7 @@ class ShadowCopyAction implements CopyAction {
303303
304304 private boolean isUnused (String classPath ) {
305305 final String className = FilenameUtils . removeExtension(classPath)
306- .replace(' /' as char , ' .' as char )
306+ .replace(' /' as char , ' .' as char )
307307 final boolean result = unused. contains(className)
308308 if (result) {
309309 log. debug(" Dropping unused class: $className " )
@@ -422,12 +422,12 @@ class ShadowCopyAction implements CopyAction {
422422 try {
423423 String mappedPath = remapper. map(element. relativePath. pathString)
424424 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()
431431 )
432432 } finally {
433433 is. close()
0 commit comments