Skip to content

Commit

Permalink
Regen for commit c8beee1
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
orpiske authored and oscerd committed Jun 14, 2023
1 parent c8beee1 commit 52443a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@
*/
package org.apache.camel.language.csimple;

import java.io.Serializable;
import java.lang.reflect.Array;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.TimeZone;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand All @@ -51,7 +48,6 @@
import org.apache.camel.util.OgnlHelper;
import org.apache.camel.util.SkipIterator;
import org.apache.camel.util.StringHelper;
import org.apache.camel.util.TimeUtils;

/**
* A set of helper as static imports for the Camel compiled simple language.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@
*/
package org.apache.camel.language.simple;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Random;
import java.util.TimeZone;
import java.util.concurrent.atomic.AtomicReference;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.camel.CamelContext;
Expand All @@ -53,7 +49,6 @@
import org.apache.camel.util.OgnlHelper;
import org.apache.camel.util.SkipIterator;
import org.apache.camel.util.StringHelper;
import org.apache.camel.util.TimeUtils;

/**
* Expression builder used by the simple language.
Expand Down Expand Up @@ -557,8 +552,6 @@ public String toString() {
};
}



private static Date evalDate(Exchange exchange, String command) {
Date date;
if ("now".equals(command)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.apache.camel.support;

import java.io.PrintWriter;
import java.io.Serializable;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
Expand Down Expand Up @@ -259,8 +258,9 @@ public static Date dateFromHeader(Exchange exchange, String command, BiFunction<

/**
* Extracts the creation date from an exchange
* @param exchange the exchange to extract the create date
* @return A Date instance
*
* @param exchange the exchange to extract the create date
* @return A Date instance
*/
public static Date dateFromExchangeCreated(Exchange exchange) {
long num = exchange.getCreated();
Expand All @@ -270,11 +270,12 @@ public static Date dateFromExchangeCreated(Exchange exchange) {
/**
* For the given offsets to a given Date instance and, optionally, convert it to a pattern. NOTE: this is for
* internal use of Camel
* @param date the date to apply the offset
* @param offsets the numeric offset as a milliseconds from epoch
* @param pattern the (optional) date pattern to convert the given date to
* @param timezone the timezone for the pattern
* @return A new Date instance with the offsets applied to it *or* a String-based if a pattern is provided
*
* @param date the date to apply the offset
* @param offsets the numeric offset as a milliseconds from epoch
* @param pattern the (optional) date pattern to convert the given date to
* @param timezone the timezone for the pattern
* @return A new Date instance with the offsets applied to it *or* a String-based if a pattern is provided
*/
public static Object applyDateOffsets(final Date date, List<Long> offsets, String pattern, String timezone) {
// Apply offsets
Expand Down

0 comments on commit 52443a2

Please sign in to comment.