2222 * <p>
2323 * Instances of this class are not thread-safe and not serializable.
2424 */
25- @ SuppressWarnings ("unchecked" )
25+ @ SuppressWarnings ({ "unchecked" , "rawtypes" } )
2626public abstract class AbstractContextBuilder <B extends AbstractContextBuilder , C extends AbstractContext >{
2727
2828 /**
@@ -190,35 +190,6 @@ public B setProviderName(String provider) {
190190 set (AbstractContext .KEY_PROVIDER , provider );
191191 return (B ) this ;
192192 }
193- //
194- // /**
195- // * Set the target timestamp in UTC millis. This allows to select historical roundings that were valid in the
196- // * past. Its implementation specific, to what extend historical roundings are available. By default if this
197- // * property is not set always current {@link javax.money.MonetaryRounding} instances are provided.
198- // *
199- // * @param timestamp the target timestamp
200- // * @return this instance for chaining
201- // * @see #setTimestamp(java.time.temporal.TemporalAccessor)
202- // */
203- // public B setTimestampMillis(long timestamp){
204- // set(AbstractContext.KEY_TIMESTAMP, timestamp);
205- // return (B) this;
206- // }
207- //
208- // /**
209- // * Set the target timestamp as {@link java.time.temporal.TemporalAccessor}. This allows to select historical
210- // * roundings that were valid in the past. Its implementation specific, to what extend historical roundings
211- // * are available. By default if this property is not set always current {@link javax.money.MonetaryRounding}
212- // * instances are provided.
213- // *
214- // * @param timestamp the target timestamp
215- // * @return this instance for chaining
216- // * @see #setTimestampMillis(long)
217- // */
218- // public B setTimestamp(LocalDateTime timestamp) {
219- // set(AbstractContext.KEY_TIMESTAMP, Objects.requireNonNull(timestamp));
220- // return (B) this;
221- // }
222193
223194 /**
224195 * Removes an entry of a certain keys. This can be useful, when a context is initialized with another
@@ -243,12 +214,6 @@ public B removeAttributes(String... keys) {
243214 */
244215 public abstract C build ();
245216
246- /*
247- * (non-Javadoc)
248- *
249- * @see Object#toString()
250- */
251-
252217 @ Override
253218 public String toString (){
254219 return getClass ().getSimpleName () + " [attributes:\n " + new TreeMap <>(data ).toString () + ']' ;
0 commit comments