Changeset b2433d0


Ignore:
Timestamp:
Feb 15, 2011 6:22:54 AM (9 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
8141160, 84990d9
Parents:
2c6984a
Message:

properly deprecate stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    r2c6984a rb2433d0  
    180180     * @return new offset
    181181     */
     182    @Deprecated
    182183    public static int toProperties(byte target[], int offset, Properties props) throws DataFormatException, IOException {
    183184        if (props != null) {
     
    220221     * @return new offset
    221222     */
     223    @Deprecated
    222224    public static int fromProperties(byte source[], int offset, Properties target) throws DataFormatException, IOException {
    223225        int size = (int)fromLong(source, offset, 2);
     
    255257     * @throws RuntimeException if either is too long.
    256258     */
     259    @Deprecated
    257260    public static byte[] toProperties(Properties opts) {
    258261        try {
     
    545548
    546549    /** @deprecated unused */
     550    @Deprecated
    547551    public static byte[] toDate(Date date) throws IllegalArgumentException {
    548552        if (date == null)
     
    679683     * @deprecated unused
    680684     */
     685    @Deprecated
    681686    public static void writeBoolean(OutputStream out, Boolean bool)
    682687        throws DataFormatException, IOException {
     
    690695   
    691696    /** @deprecated unused */
     697    @Deprecated
    692698    public static Boolean fromBoolean(byte data[], int offset) {
    693699        if (data[offset] == BOOLEAN_TRUE)
     
    700706   
    701707    /** @deprecated unused */
     708    @Deprecated
    702709    public static void toBoolean(byte data[], int offset, boolean value) {
    703710        data[offset] = (value ? BOOLEAN_TRUE : BOOLEAN_FALSE);
     
    705712
    706713    /** @deprecated unused */
     714    @Deprecated
    707715    public static void toBoolean(byte data[], int offset, Boolean value) {
    708716        if (value == null)
     
    713721   
    714722    /** deprecated - used only in DatabaseLookupMessage */
     723    @Deprecated
    715724    public static final byte BOOLEAN_TRUE = 0x1;
    716725    /** deprecated - used only in DatabaseLookupMessage */
     726    @Deprecated
    717727    public static final byte BOOLEAN_FALSE = 0x0;
    718728    /** @deprecated unused */
     729    @Deprecated
    719730    public static final byte BOOLEAN_UNKNOWN = 0x2;
    720731    /** @deprecated unused */
     732    @Deprecated
    721733    public static final int BOOLEAN_LENGTH = 1;
    722734
     
    781793     * @deprecated inefficient
    782794     */
     795    @Deprecated
    783796    public final static boolean eq(int lhs, int rhs) {
    784797        return lhs == rhs;
     
    789802     * @deprecated inefficient
    790803     */
     804    @Deprecated
    791805    public final static boolean eq(long lhs, long rhs) {
    792806        return lhs == rhs;
     
    797811     * @deprecated inefficient
    798812     */
     813    @Deprecated
    799814    public final static boolean eq(byte lhs, byte rhs) {
    800815        return lhs == rhs;
     
    975990     *              newline was found
    976991     */
     992    @Deprecated
    977993    public static boolean readLine(InputStream in, StringBuffer buf) throws IOException {
    978994        return readLine(in, buf, null);
     
    9881004     * @deprecated use StringBuilder version
    9891005     */
     1006    @Deprecated
    9901007    public static boolean readLine(InputStream in, StringBuffer buf, Sha256Standalone hash) throws IOException {
    9911008        int c = -1;
Note: See TracChangeset for help on using the changeset viewer.