code: private void copyArrays(final float[] FRACTIONS, final Color[] colors) {
          fractions = new float[FRACTIONS.length];
          System.arraycopy(FRACTIONS, 0, fractions, 0, FRACTIONS.length);
          this.colors = colors.clone();
      }
docs: Just create a local copy of the fractions and colors array
  @param FRACTIONS
  @param colors