On Fri, 1 Nov 2024 at 14:22, Emmanuel Bourg <ebo...@apache.org> wrote: > > Hi Gary, > > Le 01/11/2024 à 14:22, Gary D. Gregory a écrit : > > There has been no revert from the committer since the -1 on October 24, so > > I will revert. This affects 11 Java files. This will revert the copy and > > pasting of code patterns over and over. > > I don't understand your "copy pasting" argument, the commit replaced > exactly 8 occurrences of: > > int[] array = ArrayFill.fill(new int[length], value); > > with: > > int[] array = new int[length]; > Arrays.fill(array, value); > > > It also replaced: > > SystemProperties.getOsName(); > > with: > > System.getProperty("os.name"); > > > And two reflexive calls such as: > > FieldUtils.readField(object, fieldName, true); > > with: > > Field field = InputStream.class.getDeclaredField(fieldName); > field.setAccessible(true); > return field.get(object); > > > These are not unreasonable substitutions to avoid a 660KB dependency. > You make it sound like I copy-pasted tons of lines, but that's only 6 > more lines of code overall. > > > Let me put this differently, I'm -1 to your commits bf50b7d9 [1], > 87e898fa [2] and 09031c91 [3] from earlier this year that introduced the > dependency on Commons Lang in the first place. I'm especially unhappy > with the first one, a mix of unrelated changes confusingly labeled as > "Internal refactoring", where the dependency sneaked into without > notice, neither mentioned in the commit message nor in the changelog. > This dependency is an unnecessary bloat.
+1 > I'm also concerned about the extra dependency on Commons Codec and > Commons IO, also added this year. I'd like to return to the state of > Commons Compress 1.25 with *zero* runtime dependency (besides the > optional ones required for the various compression algorithms > supported). For Codec and IO I suggest shading the classes as a compromise. > > Emmanuel Bourg > > [1] https://github.com/apache/commons-compress/commit/bf50b7d9 > [2] https://github.com/apache/commons-compress/commit/87e898fa > [3] https://github.com/apache/commons-compress/commit/09031c91 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org