Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
histream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raphael
histream
Commits
e992755e
Commit
e992755e
authored
Sep 05, 2017
by
R.W.Majeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deprecate functions without timezone info
parent
75c3e7dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
histream-core/src/main/java/de/sekmi/histream/DateTimeAccuracy.java
...ore/src/main/java/de/sekmi/histream/DateTimeAccuracy.java
+8
-1
histream-core/src/main/java/de/sekmi/histream/io/GroupedXMLReader.java
.../src/main/java/de/sekmi/histream/io/GroupedXMLReader.java
+2
-1
No files found.
histream-core/src/main/java/de/sekmi/histream/DateTimeAccuracy.java
View file @
e992755e
...
...
@@ -66,26 +66,32 @@ public class DateTimeAccuracy implements Comparable<DateTimeAccuracy> {
this
.
instant
=
instant
;
this
.
accuracy
=
ChronoUnit
.
SECONDS
;
}
@Deprecated
public
DateTimeAccuracy
(
int
year
)
{
instant
=
LocalDateTime
.
of
(
year
,
1
,
1
,
0
,
0
).
toInstant
(
ZoneOffset
.
UTC
);
accuracy
=
ChronoUnit
.
YEARS
;
}
@Deprecated
public
DateTimeAccuracy
(
int
year
,
int
month
)
{
instant
=
LocalDateTime
.
of
(
year
,
month
,
1
,
0
,
0
).
toInstant
(
ZoneOffset
.
UTC
);
accuracy
=
ChronoUnit
.
MONTHS
;
}
@Deprecated
public
DateTimeAccuracy
(
int
year
,
int
month
,
int
day
)
{
instant
=
LocalDateTime
.
of
(
year
,
month
,
day
,
0
,
0
).
toInstant
(
ZoneOffset
.
UTC
);
accuracy
=
ChronoUnit
.
DAYS
;
}
@Deprecated
public
DateTimeAccuracy
(
int
year
,
int
month
,
int
day
,
int
hours
)
{
instant
=
LocalDateTime
.
of
(
year
,
month
,
day
,
hours
,
0
).
toInstant
(
ZoneOffset
.
UTC
);
accuracy
=
ChronoUnit
.
HOURS
;
}
@Deprecated
public
DateTimeAccuracy
(
int
year
,
int
month
,
int
day
,
int
hours
,
int
mins
)
{
instant
=
LocalDateTime
.
of
(
year
,
month
,
day
,
hours
,
mins
).
toInstant
(
ZoneOffset
.
UTC
);
accuracy
=
ChronoUnit
.
MINUTES
;
}
@Deprecated
public
DateTimeAccuracy
(
int
year
,
int
month
,
int
day
,
int
hours
,
int
mins
,
int
secs
)
{
instant
=
LocalDateTime
.
of
(
year
,
month
,
day
,
hours
,
mins
,
secs
).
toInstant
(
ZoneOffset
.
UTC
);
accuracy
=
ChronoUnit
.
SECONDS
;
...
...
@@ -141,7 +147,7 @@ public class DateTimeAccuracy implements Comparable<DateTimeAccuracy> {
@Override
public
String
toString
(){
return
toPartialIso8601
();
return
toPartialIso8601
(
ZoneOffset
.
UTC
.
normalized
()
);
}
/**
...
...
@@ -245,6 +251,7 @@ public class DateTimeAccuracy implements Comparable<DateTimeAccuracy> {
* @throws ParseException for unparsable string
* @throws IllegalArgumentException unparsable string (old unchecked exception)
*/
@Deprecated
public
static
DateTimeAccuracy
parsePartialIso8601
(
String
str
)
throws
ParseException
{
return
parsePartialIso8601
(
str
,
null
);
}
...
...
histream-core/src/main/java/de/sekmi/histream/io/GroupedXMLReader.java
View file @
e992755e
...
...
@@ -65,7 +65,7 @@ public class GroupedXMLReader implements ObservationSupplier {
private
Map
<
String
,
String
>
visitData
;
private
ZoneId
zoneId
;
@Deprecated
public
GroupedXMLReader
(
ObservationFactory
factory
,
InputStream
input
)
throws
JAXBException
,
XMLStreamException
,
FactoryConfigurationError
{
this
(
factory
,
input
,
null
);
}
...
...
@@ -82,6 +82,7 @@ public class GroupedXMLReader implements ObservationSupplier {
public
GroupedXMLReader
(
ObservationFactory
factory
,
InputStream
input
,
ZoneId
localZone
)
throws
JAXBException
,
XMLStreamException
,
FactoryConfigurationError
{
this
(
factory
,
XMLInputFactory
.
newInstance
().
createXMLStreamReader
(
input
),
localZone
);
}
@Deprecated
// TODO remove method without zoneid
public
GroupedXMLReader
(
ObservationFactory
factory
,
XMLStreamReader
reader
)
throws
JAXBException
,
XMLStreamException
{
this
(
factory
,
reader
,
null
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment