Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5D7C2200B77 for ; Sat, 3 Sep 2016 18:38:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C159160ABB; Sat, 3 Sep 2016 16:38:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9E7A2160AAC for ; Sat, 3 Sep 2016 18:38:30 +0200 (CEST) Received: (qmail 68619 invoked by uid 500); 3 Sep 2016 16:38:29 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 68604 invoked by uid 99); 3 Sep 2016 16:38:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2016 16:38:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E5CC3180600 for ; Sat, 3 Sep 2016 16:38:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 2xi2hqg_T3be for ; Sat, 3 Sep 2016 16:38:27 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 8D2995F1F6 for ; Sat, 3 Sep 2016 16:38:26 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id v143so74171637wmv.0 for ; Sat, 03 Sep 2016 09:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=BtIRrvzNLSZ66su88nO1OUn5WjJLEw8hcVQ9rHnrESs=; b=ydVGXy8WK5PXg2X/eY2dNDJKJDLrKz29jZcDuCHVvRbkTJk75zXqMOCZIeQI7dlwE1 Ozj+1Ang57ZultDHcDpjKCXjQ4T/eppJQ7vF2cZJ78Gam15dhYeTOovKdkZRFBhXsEgs F66bCYQyPFQr4v78va8+cXS4J45LZ3xBzdGvqMf4MU+snEBIytlKn+b2J7t8xxe4p+TV SAFjaOS0T44nxUvNNwgcRRkJdVU8tgANWrjQxdJuQ2FBEHh+5WV7JqlQlmL9Uz2y5aiR r/ST9P9QMZ/M5h+ArpUP5dYd1GJi6gyweGlglZJUGNo31v2YZaRreguuHEu2f9CHtZmf HNFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=BtIRrvzNLSZ66su88nO1OUn5WjJLEw8hcVQ9rHnrESs=; b=i55lbmAuxlNq8WyjST5zmg9YKNvt6w9tl+wfja/KdPcv1N88dlKC4rj332gL7hJYEF QHvPSY0F7xMR5LgWNHCguiWgNf0qA9G1wPMw6OadDYm0Jcay2cIf+Wmqxc8bjP//Yoxg R0Moe+bgSHYY9kJVt279QNkCmYSD6YBaLI7Ysk9DUZo3A4zYqLXb0XKGTaIH8Je3SKX9 4HKXlNSqtJBzjlSF5OCdRPVOSEEsYIV7L5jMao2hxBQeIAaSYZnVi+PQIq9Xyi7Ct8xG KuaBi6UKOepEwsHPICtFghZ2AH7D2m0LSqWSxzwLupzBqWcB0BVCdtLbaQGfokD0gERO zI5w== X-Gm-Message-State: AE9vXwPqx6z1qYrY5yqp1rpJXZRjLAYlD7RJNMsFPQ4VtLpoIHczxu0qp1qn3WQMk8VprqE1/9GN7duP69eFVw== X-Received: by 10.28.206.8 with SMTP id e8mr7881519wmg.57.1472920705447; Sat, 03 Sep 2016 09:38:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Benedikt Ritter Date: Sat, 03 Sep 2016 16:38:15 +0000 Message-ID: Subject: Re: Back to contributing to Commons Imaging To: Commons Developers List Content-Type: multipart/alternative; boundary=94eb2c19437e6e3bbc053b9d13aa archived-at: Sat, 03 Sep 2016 16:38:31 -0000 --94eb2c19437e6e3bbc053b9d13aa Content-Type: text/plain; charset=UTF-8 sebb schrieb am Sa., 3. Sep. 2016 um 15:29 Uhr: > On 3 September 2016 at 13:14, Benedikt Ritter wrote: > > Hi Damjan, > > > > nice you're back. I think there is only one thing left before 1.0 can ne > > released and that is the findbugs violations. They are mainly about > > exposure of internal state because the public API accepts byte arrays as > > input parameter. An easy way to fix this would be to copy the arrays. > But I > > think that would be very bad for Performance... > > On the other hand, if the existing API is kept, it's not going to be > possible to easily change the design without breaking compatibility. > > The more internal state is exposed, the harder it is to change code in > the future. > And the harder it is to fully test the code. > > I've not looked at the code recently, but would it be possible to wrap > the byte array in an object, and only provide access via methods? > Could you elaborate some more how that would like? If users have to create the wrapper object they would still have the reference to the byte array passed to the wrapper. > > It would be fairly easy to replace individual entry reads and writes > with getters and setters, but that might be too expensive for some > operations. > Depending on how many other such operations there are it might be > possible to provide other methods for them. > > > Regards, > > Benedikt > > > > Damjan Jovanovic schrieb am Sa., 3. Sep. 2016 um > 11:42: > > > >> Hi > >> > >> I am back to contributing to Commons Imaging. > >> > >> Will start with some cleanups, like try-with-resources instead of > >> IoUtils.closeQuietly(). > >> > >> Java and Maven are a heaven send after working in C++ and make with > Apache > >> OpenOffice. > >> > >> Regards > >> Damjan > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --94eb2c19437e6e3bbc053b9d13aa--