Remove all date 'now' methods from the Painless whitelist to ensure

Painless scripts are pure functions.
This commit is contained in:
Jack Conradson 2016-10-05 09:47:20 -07:00
parent 02dd1ba61a
commit ba88d9af57
2 changed files with 0 additions and 40 deletions

View File

@ -82,8 +82,6 @@ class Chronology -> java.time.chrono.Chronology extends Comparable {
ChronoLocalDate date(Era,int,int,int) ChronoLocalDate date(Era,int,int,int)
ChronoLocalDate date(int,int,int) ChronoLocalDate date(int,int,int)
ChronoLocalDate dateEpochDay(long) ChronoLocalDate dateEpochDay(long)
ChronoLocalDate dateNow()
ChronoLocalDate dateNow(ZoneId)
ChronoLocalDate dateYearDay(Era,int,int) ChronoLocalDate dateYearDay(Era,int,int)
ChronoLocalDate dateYearDay(int,int) ChronoLocalDate dateYearDay(int,int)
boolean equals(Object) boolean equals(Object)
@ -171,8 +169,6 @@ class HijrahChronology -> java.time.chrono.HijrahChronology extends AbstractChro
HijrahDate date(int,int,int) HijrahDate date(int,int,int)
HijrahDate date(Era,int,int,int) HijrahDate date(Era,int,int,int)
HijrahDate dateEpochDay(long) HijrahDate dateEpochDay(long)
HijrahDate dateNow()
HijrahDate dateNow(ZoneId)
HijrahDate dateYearDay(int,int) HijrahDate dateYearDay(int,int)
HijrahDate dateYearDay(Era,int,int) HijrahDate dateYearDay(Era,int,int)
HijrahEra eraOf(int) HijrahEra eraOf(int)
@ -185,8 +181,6 @@ class HijrahDate -> java.time.chrono.HijrahDate extends ChronoLocalDate,Temporal
HijrahEra getEra() HijrahEra getEra()
HijrahDate minus(TemporalAmount) HijrahDate minus(TemporalAmount)
HijrahDate minus(long,TemporalUnit) HijrahDate minus(long,TemporalUnit)
HijrahDate now()
HijrahDate now(ZoneId)
HijrahDate of(int,int,int) HijrahDate of(int,int,int)
HijrahDate plus(TemporalAmount) HijrahDate plus(TemporalAmount)
HijrahDate plus(long,TemporalUnit) HijrahDate plus(long,TemporalUnit)
@ -201,8 +195,6 @@ class IsoChronology -> java.time.chrono.IsoChronology extends AbstractChronology
LocalDate date(int,int,int) LocalDate date(int,int,int)
LocalDate date(Era,int,int,int) LocalDate date(Era,int,int,int)
LocalDate dateEpochDay(long) LocalDate dateEpochDay(long)
LocalDate dateNow()
LocalDate dateNow(ZoneId)
LocalDate dateYearDay(int,int) LocalDate dateYearDay(int,int)
LocalDate dateYearDay(Era,int,int) LocalDate dateYearDay(Era,int,int)
IsoEra eraOf(int) IsoEra eraOf(int)
@ -219,8 +211,6 @@ class JapaneseChronology -> java.time.chrono.JapaneseChronology extends Abstract
JapaneseDate date(int,int,int) JapaneseDate date(int,int,int)
JapaneseDate date(Era,int,int,int) JapaneseDate date(Era,int,int,int)
JapaneseDate dateEpochDay(long) JapaneseDate dateEpochDay(long)
JapaneseDate dateNow()
JapaneseDate dateNow(ZoneId)
JapaneseDate dateYearDay(int,int) JapaneseDate dateYearDay(int,int)
JapaneseDate dateYearDay(Era,int,int) JapaneseDate dateYearDay(Era,int,int)
JapaneseEra eraOf(int) JapaneseEra eraOf(int)
@ -228,8 +218,6 @@ class JapaneseChronology -> java.time.chrono.JapaneseChronology extends Abstract
} }
class JapaneseDate -> java.time.chrono.JapaneseDate extends ChronoLocalDate,Temporal,TemporalAccessor,TemporalAdjuster,Comparable,Object { class JapaneseDate -> java.time.chrono.JapaneseDate extends ChronoLocalDate,Temporal,TemporalAccessor,TemporalAdjuster,Comparable,Object {
JapaneseDate now()
JapaneseDate now(ZoneId)
JapaneseDate of(int,int,int) JapaneseDate of(int,int,int)
JapaneseDate from(TemporalAccessor) JapaneseDate from(TemporalAccessor)
JapaneseChronology getChronology() JapaneseChronology getChronology()
@ -259,8 +247,6 @@ class MinguoChronology -> java.time.chrono.MinguoChronology extends AbstractChro
MinguoDate date(int,int,int) MinguoDate date(int,int,int)
MinguoDate date(Era,int,int,int) MinguoDate date(Era,int,int,int)
MinguoDate dateEpochDay(long) MinguoDate dateEpochDay(long)
MinguoDate dateNow()
MinguoDate dateNow(ZoneId)
MinguoDate dateYearDay(int,int) MinguoDate dateYearDay(int,int)
MinguoDate dateYearDay(Era,int,int) MinguoDate dateYearDay(Era,int,int)
MinguoEra eraOf(int) MinguoEra eraOf(int)
@ -268,8 +254,6 @@ class MinguoChronology -> java.time.chrono.MinguoChronology extends AbstractChro
} }
class MinguoDate -> java.time.chrono.MinguoDate extends ChronoLocalDate,Temporal,TemporalAccessor,TemporalAdjuster,Comparable,Object { class MinguoDate -> java.time.chrono.MinguoDate extends ChronoLocalDate,Temporal,TemporalAccessor,TemporalAdjuster,Comparable,Object {
MinguoDate now()
MinguoDate now(ZoneId)
MinguoDate of(int,int,int) MinguoDate of(int,int,int)
MinguoDate from(TemporalAccessor) MinguoDate from(TemporalAccessor)
MinguoChronology getChronology() MinguoChronology getChronology()
@ -288,8 +272,6 @@ class ThaiBuddhistChronology -> java.time.chrono.ThaiBuddhistChronology extends
ThaiBuddhistDate date(int,int,int) ThaiBuddhistDate date(int,int,int)
ThaiBuddhistDate date(Era,int,int,int) ThaiBuddhistDate date(Era,int,int,int)
ThaiBuddhistDate dateEpochDay(long) ThaiBuddhistDate dateEpochDay(long)
ThaiBuddhistDate dateNow()
ThaiBuddhistDate dateNow(ZoneId)
ThaiBuddhistDate dateYearDay(int,int) ThaiBuddhistDate dateYearDay(int,int)
ThaiBuddhistDate dateYearDay(Era,int,int) ThaiBuddhistDate dateYearDay(Era,int,int)
ThaiBuddhistEra eraOf(int) ThaiBuddhistEra eraOf(int)
@ -297,8 +279,6 @@ class ThaiBuddhistChronology -> java.time.chrono.ThaiBuddhistChronology extends
} }
class ThaiBuddhistDate -> java.time.chrono.ThaiBuddhistDate extends ChronoLocalDate,Temporal,TemporalAccessor,TemporalAdjuster,Comparable,Object { class ThaiBuddhistDate -> java.time.chrono.ThaiBuddhistDate extends ChronoLocalDate,Temporal,TemporalAccessor,TemporalAdjuster,Comparable,Object {
ThaiBuddhistDate now()
ThaiBuddhistDate now(ZoneId)
ThaiBuddhistDate of(int,int,int) ThaiBuddhistDate of(int,int,int)
ThaiBuddhistDate from(TemporalAccessor) ThaiBuddhistDate from(TemporalAccessor)
ThaiBuddhistChronology getChronology() ThaiBuddhistChronology getChronology()

View File

@ -103,8 +103,6 @@ class Instant -> java.time.Instant extends Comparable,Temporal,TemporalAccessor,
Instant minusMillis(long) Instant minusMillis(long)
Instant minusNanos(long) Instant minusNanos(long)
Instant minusSeconds(long) Instant minusSeconds(long)
Instant now()
Instant now(Clock)
Instant ofEpochSecond(long) Instant ofEpochSecond(long)
Instant ofEpochSecond(long,long) Instant ofEpochSecond(long,long)
Instant ofEpochMilli(long) Instant ofEpochMilli(long)
@ -143,8 +141,6 @@ class LocalDate -> java.time.LocalDate extends ChronoLocalDate,Temporal,Temporal
LocalDate minusMonths(long) LocalDate minusMonths(long)
LocalDate minusWeeks(long) LocalDate minusWeeks(long)
LocalDate minusDays(long) LocalDate minusDays(long)
LocalDate now()
LocalDate now(ZoneId)
LocalDate of(int,int,int) LocalDate of(int,int,int)
LocalDate ofYearDay(int,int) LocalDate ofYearDay(int,int)
LocalDate ofEpochDay(long) LocalDate ofEpochDay(long)
@ -191,8 +187,6 @@ class LocalDateTime -> java.time.LocalDateTime extends ChronoLocalDateTime,Tempo
LocalDateTime minusSeconds(long) LocalDateTime minusSeconds(long)
LocalDateTime minusWeeks(long) LocalDateTime minusWeeks(long)
LocalDateTime minusYears(long) LocalDateTime minusYears(long)
LocalDateTime now()
LocalDateTime now(ZoneId)
LocalDateTime of(LocalDate,LocalTime) LocalDateTime of(LocalDate,LocalTime)
LocalDateTime of(int,int,int,int,int) LocalDateTime of(int,int,int,int,int)
LocalDateTime of(int,int,int,int,int,int) LocalDateTime of(int,int,int,int,int,int)
@ -246,8 +240,6 @@ class LocalTime -> java.time.LocalTime extends Temporal,TemporalAccessor,Tempora
LocalTime minusMinutes(long) LocalTime minusMinutes(long)
LocalTime minusNanos(long) LocalTime minusNanos(long)
LocalTime minusSeconds(long) LocalTime minusSeconds(long)
LocalTime now()
LocalTime now(ZoneId)
LocalTime of(int,int) LocalTime of(int,int)
LocalTime of(int,int,int) LocalTime of(int,int,int)
LocalTime of(int,int,int,int) LocalTime of(int,int,int,int)
@ -283,8 +275,6 @@ class MonthDay -> java.time.MonthDay extends TemporalAccessor,TemporalAdjuster,C
boolean isAfter(MonthDay) boolean isAfter(MonthDay)
boolean isBefore(MonthDay) boolean isBefore(MonthDay)
boolean isValidYear(int) boolean isValidYear(int)
MonthDay now()
MonthDay now(ZoneId)
MonthDay of(int,int) MonthDay of(int,int)
MonthDay parse(CharSequence) MonthDay parse(CharSequence)
MonthDay parse(CharSequence,DateTimeFormatter) MonthDay parse(CharSequence,DateTimeFormatter)
@ -325,8 +315,6 @@ class OffsetDateTime -> java.time.OffsetDateTime extends Temporal,TemporalAccess
OffsetDateTime minusMinutes(long) OffsetDateTime minusMinutes(long)
OffsetDateTime minusSeconds(long) OffsetDateTime minusSeconds(long)
OffsetDateTime minusNanos(long) OffsetDateTime minusNanos(long)
OffsetDateTime now()
OffsetDateTime now(ZoneId)
OffsetDateTime of(LocalDate,LocalTime,ZoneOffset) OffsetDateTime of(LocalDate,LocalTime,ZoneOffset)
OffsetDateTime of(LocalDateTime,ZoneOffset) OffsetDateTime of(LocalDateTime,ZoneOffset)
OffsetDateTime of(int,int,int,int,int,int,int,ZoneOffset) OffsetDateTime of(int,int,int,int,int,int,int,ZoneOffset)
@ -380,8 +368,6 @@ class OffsetTime -> java.time.OffsetTime extends Temporal,TemporalAccessor,Tempo
boolean isAfter(OffsetTime) boolean isAfter(OffsetTime)
boolean isBefore(OffsetTime) boolean isBefore(OffsetTime)
boolean isEqual(OffsetTime) boolean isEqual(OffsetTime)
OffsetTime now()
OffsetTime now(ZoneId)
OffsetTime of(LocalTime,ZoneOffset) OffsetTime of(LocalTime,ZoneOffset)
OffsetTime of(int,int,int,int,ZoneOffset) OffsetTime of(int,int,int,int,ZoneOffset)
OffsetTime ofInstant(Instant,ZoneId) OffsetTime ofInstant(Instant,ZoneId)
@ -460,8 +446,6 @@ class Year -> java.time.Year extends Temporal,TemporalAccessor,TemporalAdjuster,
Year minus(TemporalAmount) Year minus(TemporalAmount)
Year minus(long,TemporalUnit) Year minus(long,TemporalUnit)
Year minusYears(long) Year minusYears(long)
Year now()
Year now(ZoneId)
Year of(int) Year of(int)
Year parse(CharSequence) Year parse(CharSequence)
Year parse(CharSequence,DateTimeFormatter) Year parse(CharSequence,DateTimeFormatter)
@ -491,8 +475,6 @@ class YearMonth -> java.time.YearMonth extends Temporal,TemporalAccessor,Tempora
YearMonth minus(long,TemporalUnit) YearMonth minus(long,TemporalUnit)
YearMonth minusYears(long) YearMonth minusYears(long)
YearMonth minusMonths(long) YearMonth minusMonths(long)
YearMonth now()
YearMonth now(ZoneId)
YearMonth of(int,int) YearMonth of(int,int)
YearMonth parse(CharSequence) YearMonth parse(CharSequence)
YearMonth parse(CharSequence,DateTimeFormatter) YearMonth parse(CharSequence,DateTimeFormatter)
@ -530,8 +512,6 @@ class ZonedDateTime -> java.time.ZonedDateTime extends ChronoZonedDateTime,Tempo
ZonedDateTime minusMinutes(long) ZonedDateTime minusMinutes(long)
ZonedDateTime minusSeconds(long) ZonedDateTime minusSeconds(long)
ZonedDateTime minusNanos(long) ZonedDateTime minusNanos(long)
ZonedDateTime now()
ZonedDateTime now(ZoneId)
ZonedDateTime of(LocalDate,LocalTime,ZoneId) ZonedDateTime of(LocalDate,LocalTime,ZoneId)
ZonedDateTime of(LocalDateTime,ZoneId) ZonedDateTime of(LocalDateTime,ZoneId)
ZonedDateTime of(int,int,int,int,int,int,int,ZoneId) ZonedDateTime of(int,int,int,int,int,int,int,ZoneId)