Skip to content

Commit dfc6686

Browse files
committed
fix incorrect version in dependency
1 parent 49c286e commit dfc6686

36 files changed

+820
-7269
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ project, add the following to the `dependencies` section in your `pom.xml` file:
2525
<dependency>
2626
<groupId>com.upokecenter</groupId>
2727
<artifactId>cbor</artifactId>
28-
<version>2.4.0</version>
28+
<version>2.4.1</version>
2929
</dependency>
3030
```
3131

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.upokecenter</groupId>
55
<artifactId>cbor</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.4.0</version>
7+
<version>2.4.1</version>
88
<name>CBOR</name>
99
<description>
1010
A Java implementation of Concise Binary Object Representation (CBOR), a general-purpose binary data format defined in RFC 7049. According to that RFC, CBOR's data model "is an extended version of the JSON data model", supporting many more types of data than JSON. This implementation was written by Peter O. and is released to the Public Domain under the CC0 Declaration.
@@ -121,7 +121,7 @@
121121
<dependency>
122122
<groupId>com.github.peteroupc</groupId>
123123
<artifactId>numbers</artifactId>
124-
<version>0.2.0-SNAPSHOT</version>
124+
<version>0.2.0</version>
125125
</dependency>
126126
</dependencies>
127127
</project>

src/main/java/com/upokecenter/cbor/CBORBigInteger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public float AsSingle(Object obj) {
4343
return EFloat.FromEInteger((EInteger)obj).ToSingle();
4444
}
4545

46-
public EInteger AsBigInteger(Object obj) {
46+
public EInteger AsEInteger(Object obj) {
4747
return (EInteger)obj;
4848
}
4949

src/main/java/com/upokecenter/cbor/CBORDataUtilities.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static CBORObject ParseJSONNumber(String str) {
3636
* Parses a number whose format follows the JSON specification (RFC 7159).
3737
* Roughly speaking, a valid number consists of an optional minus sign,
3838
* one or more basic digits (starting with 1 to 9 unless the only digit
39-
* is 0), an optional decimal point ("." , full stop) with one or more
39+
* is 0), an optional decimal point (".", full stop) with one or more
4040
* basic digits, and an optional letter E or e with an optional plus or
4141
* minus sign and one or more basic digits (the exponent).
4242
* @param str A string to parse. The string is not allowed to contain white
@@ -61,7 +61,7 @@ public static CBORObject ParseJSONNumber(
6161
* Parses a number whose format follows the JSON specification (RFC 7159).
6262
* Roughly speaking, a valid number consists of an optional minus sign,
6363
* one or more basic digits (starting with 1 to 9 unless the only digit
64-
* is 0), an optional decimal point ("." , full stop) with one or more
64+
* is 0), an optional decimal point (".", full stop) with one or more
6565
* basic digits, and an optional letter E or e with an optional plus or
6666
* minus sign and one or more basic digits (the exponent).
6767
* @param str A string to parse. The string is not allowed to contain white

src/main/java/com/upokecenter/cbor/CBORDouble.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public float AsSingle(Object obj) {
4343
return ((Double)obj).floatValue();
4444
}
4545

46-
public EInteger AsBigInteger(Object obj) {
46+
public EInteger AsEInteger(Object obj) {
4747
return CBORUtilities.BigIntegerFromDouble(((Double)obj).doubleValue());
4848
}
4949

src/main/java/com/upokecenter/cbor/CBORException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
public class CBORException extends RuntimeException {
1313
private static final long serialVersionUID = 1L;
1414
/**
15-
* Initializes a new instance of the <see cref='T:PeterO.Cbor.CBORException'/>
15+
* Initializes a new instance of the {@link com.upokecenter.cbor.CBORException}
1616
* class.
1717
*/
1818
public CBORException() {
1919
}
2020

2121
/**
22-
* Initializes a new instance of the <see cref='T:PeterO.Cbor.CBORException'/>
22+
* Initializes a new instance of the {@link com.upokecenter.cbor.CBORException}
2323
* class.
2424
* @param message A text string.
2525
*/
@@ -28,7 +28,7 @@ public CBORException(String message) {
2828
}
2929

3030
/**
31-
* Initializes a new instance of the <see cref='T:PeterO.Cbor.CBORException'/>
31+
* Initializes a new instance of the {@link com.upokecenter.cbor.CBORException}
3232
* class. Uses the given message and inner exception.
3333
* @param message A text string.
3434
* @param innerException An Exception object.

src/main/java/com/upokecenter/cbor/CBORExtendedDecimal.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public EDecimal AsExtendedDecimal(Object obj) {
4343

4444
public EFloat AsExtendedFloat(Object obj) {
4545
EDecimal ed = (EDecimal)obj;
46-
return ed.ToExtendedFloat();
46+
return ed.ToEFloat();
4747
}
4848

4949
public float AsSingle(Object obj) {
5050
EDecimal ed = (EDecimal)obj;
5151
return ed.ToSingle();
5252
}
5353

54-
public EInteger AsBigInteger(Object obj) {
54+
public EInteger AsEInteger(Object obj) {
5555
EDecimal ed = (EDecimal)obj;
5656
return ed.ToEInteger();
5757
}
@@ -155,7 +155,7 @@ public Object Abs(Object obj) {
155155
}
156156

157157
public ERational AsExtendedRational(Object obj) {
158-
return ERational.FromExtendedDecimal((EDecimal)obj);
158+
return ERational.FromEDecimal((EDecimal)obj);
159159
}
160160

161161
public boolean IsNegative(Object obj) {

src/main/java/com/upokecenter/cbor/CBORExtendedFloat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public double AsDouble(Object obj) {
3838

3939
public EDecimal AsExtendedDecimal(Object obj) {
4040
EFloat ef = (EFloat)obj;
41-
return ef.ToExtendedDecimal();
41+
return ef.ToEDecimal();
4242
}
4343

4444
public EFloat AsExtendedFloat(Object obj) {
@@ -51,7 +51,7 @@ public float AsSingle(Object obj) {
5151
return ef.ToSingle();
5252
}
5353

54-
public EInteger AsBigInteger(Object obj) {
54+
public EInteger AsEInteger(Object obj) {
5555
EFloat ef = (EFloat)obj;
5656
return ef.ToEInteger();
5757
}
@@ -160,7 +160,7 @@ public Object Abs(Object obj) {
160160
}
161161

162162
public ERational AsExtendedRational(Object obj) {
163-
return ERational.FromExtendedFloat((EFloat)obj);
163+
return ERational.FromEFloat((EFloat)obj);
164164
}
165165

166166
public boolean IsNegative(Object obj) {

src/main/java/com/upokecenter/cbor/CBORExtendedRational.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ public EDecimal AsExtendedDecimal(Object obj) {
3636
ERational er = (ERational)obj;
3737
return
3838

39-
er.ToExtendedDecimalExactIfPossible(EContext.Decimal128.WithUnlimitedExponents());
39+
er.ToEDecimalExactIfPossible(EContext.Decimal128.WithUnlimitedExponents());
4040
}
4141

4242
public EFloat AsExtendedFloat(Object obj) {
4343
ERational er = (ERational)obj;
4444
return
4545

46-
er.ToExtendedFloatExactIfPossible(EContext.Binary128.WithUnlimitedExponents());
46+
er.ToEFloatExactIfPossible(EContext.Binary128.WithUnlimitedExponents());
4747
}
4848

4949
public float AsSingle(Object obj) {
5050
ERational er = (ERational)obj;
5151
return er.ToSingle();
5252
}
5353

54-
public EInteger AsBigInteger(Object obj) {
54+
public EInteger AsEInteger(Object obj) {
5555
ERational er = (ERational)obj;
5656
return er.ToEInteger();
5757
}

src/main/java/com/upokecenter/cbor/CBORInteger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Object Abs(Object obj) {
1717
-val : obj);
1818
}
1919

20-
public EInteger AsBigInteger(Object obj) {
20+
public EInteger AsEInteger(Object obj) {
2121
return EInteger.FromInt64((((Long)obj).longValue()));
2222
}
2323

0 commit comments

Comments
 (0)