id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
6,801
import org.apache.commons.lang3.math.NumberUtils; import org.json.JSONException; import org.mariotaku.microblog.library.MicroBlog; import org.mariotaku.microblog.library.MicroBlogException; import org.mariotaku.microblog.library.twitter.model.RateLimitStatus; <BUG>import org.mariotaku.microblog.library.twitter.model.Status; import org.mariotaku.sqliteqb.library.AllColumns;</BUG> import org.mariotaku.sqliteqb.library.Columns; import org.mariotaku.sqliteqb.library.Columns.Column; import org.mariotaku.sqliteqb.library.Expression;
import org.mariotaku.pickncrop.library.PNCUtils; import org.mariotaku.sqliteqb.library.AllColumns;
6,802
context.getApplicationContext().sendBroadcast(intent); } } @Nullable public static Location getCachedLocation(Context context) { <BUG>if (BuildConfig.DEBUG) { Log.v(LOGTAG, "Fetching cached location", new Exception()); }</BUG> Location location = null;
DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
6,803
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); twitter.updateProfileBannerImage(fileBody); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.format("Unable to delete %s", file)); }</BUG> }
if (deleteImage) { Utils.deleteMedia(context, imageUri);
6,804
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); twitter.updateProfileBackgroundImage(fileBody, tile); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.format("Unable to delete %s", file)); }</BUG> }
twitter.updateProfileBannerImage(fileBody); if (deleteImage) { Utils.deleteMedia(context, imageUri);
6,805
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); return twitter.updateProfileImage(fileBody); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.format("Unable to delete %s", file)); }</BUG> }
twitter.updateProfileBannerImage(fileBody); if (deleteImage) { Utils.deleteMedia(context, imageUri);
6,806
import org.mariotaku.twidere.receiver.NotificationReceiver; import org.mariotaku.twidere.service.LengthyOperationsService; import org.mariotaku.twidere.util.ActivityTracker; import org.mariotaku.twidere.util.AsyncTwitterWrapper; import org.mariotaku.twidere.util.DataStoreFunctionsKt; <BUG>import org.mariotaku.twidere.util.DataStoreUtils; import org.mariotaku.twidere.util.ImagePreloader;</BUG> import org.mariotaku.twidere.util.InternalTwitterContentUtils; import org.mariotaku.twidere.util.JsonSerializer; import org.mariotaku.twidere.util.NotificationManagerWrapper;
import org.mariotaku.twidere.util.DebugLog; import org.mariotaku.twidere.util.ImagePreloader;
6,807
final List<InetAddress> addresses = mDns.lookup(host); for (InetAddress address : addresses) { c.addRow(new String[]{host, address.getHostAddress()}); } } catch (final IOException ignore) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, ignore); }</BUG> }
DebugLog.w(LOGTAG, null, ignore);
6,808
for (Location location : twitter.getAvailableTrends()) { map.put(location); } return map.pack(); } catch (final MicroBlogException e) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, e); }</BUG> }
DebugLog.w(LOGTAG, null, e);
6,809
import android.content.Context; import android.content.SharedPreferences; import android.location.Location; import android.os.AsyncTask; import android.support.annotation.NonNull; <BUG>import android.util.Log; import org.mariotaku.twidere.BuildConfig; import org.mariotaku.twidere.Constants; import org.mariotaku.twidere.util.JsonSerializer;</BUG> import org.mariotaku.twidere.util.Utils;
import org.mariotaku.twidere.util.DebugLog; import org.mariotaku.twidere.util.JsonSerializer;
6,810
} public static LatLng getCachedLatLng(@NonNull final Context context) { final Context appContext = context.getApplicationContext(); final SharedPreferences prefs = DependencyHolder.Companion.get(context).getPreferences(); if (!prefs.getBoolean(KEY_USAGE_STATISTICS, false)) return null; <BUG>if (BuildConfig.DEBUG) { Log.d(HotMobiLogger.LOGTAG, "getting cached location"); }</BUG> final Location location = Utils.getCachedLocation(appContext);
DebugLog.d(HotMobiLogger.LOGTAG, "getting cached location", null);
6,811
public int destroySavedSearchAsync(final UserKey accountKey, final long searchId) { final DestroySavedSearchTask task = new DestroySavedSearchTask(accountKey, searchId); return asyncTaskManager.add(task, true); } public int destroyStatusAsync(final UserKey accountKey, final String statusId) { <BUG>final DestroyStatusTask task = new DestroyStatusTask(context,accountKey, statusId); </BUG> return asyncTaskManager.add(task, true); } public int destroyUserListAsync(final UserKey accountKey, final String listId) {
final DestroyStatusTask task = new DestroyStatusTask(context, accountKey, statusId);
6,812
@Override public void afterExecute(Bus handler, SingleResponse<Relationship> result) { if (result.hasData()) { handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData())); } else if (result.hasException()) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, "Unable to update friendship", result.getException()); }</BUG> }
public UserKey[] getAccountKeys() { return DataStoreUtils.getActivatedAccountKeys(context);
6,813
MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId); if (!Utils.isOfficialCredentials(context, accountId)) continue; try { microBlog.setActivitiesAboutMeUnread(cursor); } catch (MicroBlogException e) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, e); }</BUG> }
DebugLog.w(LOGTAG, null, e);
6,814
pop.add(new JPopupMenu.Separator()); addMenu(pop, "Delete"); return pop; } private void changeTable() { <BUG>TableSorter tm = (TableSorter)_inTable.getModel(); tm.tableChanged(new TableModelEvent(tm)); </BUG> }
addMenu(pop, "Enable"); addMenu(pop, "Disable"); TableModel tm = _inTable.getModel(); _inTable.tableChanged(new TableModelEvent(tm));
6,815
AuctionListHolder(String name, boolean _completed, boolean deletable) { mAuctionList = new Auctions(name); if(_completed) mAuctionList.setComplete(); mAuctionUI = new AuctionsUIModel(mAuctionList, sTableContext, sFrameContext, sCornerButtonListener); mDeletable = deletable; <BUG>JTabManager.getInstance().add(name, mAuctionUI.getPanel(), mAuctionUI.getTableSorter()); }</BUG> public Auctions getList() { return mAuctionList; } public AuctionsUIModel getUI() { return mAuctionUI; } public static void setFrameContext(JBidContext frameContext) {
JTabManager.getInstance().add(name, mAuctionUI.getPanel(), mAuctionUI.getTable());
6,816
import com.jbidwatcher.util.queue.MQFactory; import com.jbidwatcher.util.StringTools; import com.jbidwatcher.auction.AuctionEntry; import com.jbidwatcher.auction.Auctions; import com.jbidwatcher.auction.Category; <BUG>import com.jbidwatcher.auction.EntryCorral; import java.util.*;</BUG> import java.awt.Color; public class FilterManager implements MessageQueue.Listener, FilterInterface { private static final ListManager mList = ListManager.getInstance();
import javax.swing.event.TableModelEvent; import java.util.*;
6,817
if (newAuction != null) { MQFactory.getConcrete("Swing").enqueue("Moved to " + newAuction.getList().getName() + " " + Auctions.getTitleAndComment(ae)); if (old != null) old.getUI().redrawAll(); newAuction.getUI().redrawAll(); } else { <BUG>JTabManager.getInstance().getCurrentTable().update(ae); }</BUG> return; } }
auctionTableModel model = (auctionTableModel)JTabManager.getInstance().getCurrentTable().getModel(); int row = model.findRow(ae); row = JTabManager.getInstance().getCurrentTable().convertRowIndexToView(row); JTabManager.getInstance().getCurrentTable().tableChanged(new TableModelEvent(model, row));
6,818
if(_table.convertColumnIndexToView(TableColumnController.SHIPPING_INSURANCE) == -1) { _table.addColumn(new TableColumn(TableColumnController.SHIPPING_INSURANCE)); } JConfig.killAll("show_shipping"); } <BUG>adjustRowHeight(); _table.addMouseListener(tableContextMenu); _tSort.addMouseListenerToHeaderInTable(_table);</BUG> if(Platform.isMac() || JConfig.queryConfiguration("ui.useCornerButton", "true").equals("true")) { _scroller = new JScrollPane(_table, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
sorter = new TableRowSorter<TableModel>(_table.getModel()); _table.setRowSorter(sorter);
6,819
_table.setDefaultRenderer(String.class, _myRenderer); _table.setDefaultRenderer(Icon.class, _myRenderer); mPanel = new JPanel(); mPanel.setLayout(new BorderLayout()); mPanel.add(_scroller, BorderLayout.CENTER); <BUG>addSumMonitor(_table, _tSort); JPanel statusPanel = new TabStatusPanel(_dataModel.getName());</BUG> mPanel.add(statusPanel, BorderLayout.NORTH); } public JPanel getPanel() {
addSumMonitor(_table); JPanel statusPanel = new TabStatusPanel(_dataModel.getName());
6,820
oldStairway; previousLocation = centerLocation; if (!"Wooden Building".equals(centerLocationTerrain.getName()) && !"Stone Building".equals(centerLocationTerrain.getName()) && !(centerLocationTerrain.getLOSCategory() == Terrain.LOSCategories.FACTORY)) { <BUG>if (isMultihexBuilding()) { final Location l = new Location(</BUG> centerLocation.getName() + " Cellar ", -1, centerLocation.getLOSPoint(),
Terrain cellarterrain; cellarterrain = map.getTerrain("Cellar"); final Location l = new Location(
6,821
-1, centerLocation.getLOSPoint(), centerLocation.getLOSPoint(), null, this, <BUG>centerLocationTerrain );</BUG> previousLocation.setDownLocation(l); l.setUpLocation(previousLocation); previousLocation = l;
cellarterrain
6,822
} } previousLocation = centerLocation; if (!"Wooden Building".equals(centerLocationTerrain.getName()) && !"Stone Building".equals(centerLocationTerrain.getName()) && <BUG>!centerLocationTerrain.getName().contains("Roofless")) { if (isMultihexBuilding()) { int level = 0;</BUG> while (previousLocation.getUpLocation() != null) {
!centerLocationTerrain.isRoofless()) { Terrain roofterrain; roofterrain = map.getTerrain("Rooftop"); int level = 0;
6,823
level + 1, centerLocation.getLOSPoint(), centerLocation.getLOSPoint(), null, this, <BUG>centerLocationTerrain );</BUG> previousLocation.setUpLocation(l); l.setDownLocation(previousLocation); previousLocation = l;
roofterrain
6,824
throw new IllegalArgumentException(element + ": a local element declaration must be annotated with @XmlElementDecl."); } List<? extends VariableElement> params = element.getParameters(); if (params.size() != 1) { throw new IllegalArgumentException(element + ": a local element declaration must have only one parameter."); <BUG>} VariableElement param = params.iterator().next(); TypeMirror paramType = param.asType(); if (!(paramType.getKind() == TypeKind.DECLARED)) { throw new IllegalArgumentException(element + ": parameter type must be a declared type."); } elementTypeDeclaration = (TypeElement) ((DeclaredType) paramType).asElement();</BUG> this.facets.addAll(Facet.gatherFacets(registry));
elementType = params.get(0).asType();
6,825
if ("\u0000".equals(defaultValue)) { defaultValue = null; } return defaultValue; } <BUG>public TypeElement getElementType() { return elementTypeDeclaration; }</BUG> public XmlType getElementXmlType() {
public TypeMirror getElementType() { return elementType;
6,826
import net.buycraft.plugin.execution.strategy.CommandExecutor; import net.buycraft.plugin.execution.strategy.PostCompletedCommandsTask; import net.buycraft.plugin.execution.strategy.QueuedCommandExecutor; import net.buycraft.plugin.shared.config.BuycraftConfiguration; import net.buycraft.plugin.shared.config.BuycraftI18n; <BUG>import net.buycraft.plugin.shared.util.Ipv4PreferDns; import okhttp3.Cache;</BUG> import okhttp3.OkHttpClient; import org.bukkit.Bukkit; import org.bukkit.plugin.java.JavaPlugin;
import net.buycraft.plugin.util.BugsnagNilLogger; import net.buycraft.plugin.util.BuycraftBeforeNotify; import okhttp3.Cache;
6,827
private IBuycraftPlatform platform; @Getter private CommandExecutor commandExecutor; @Getter private BuycraftI18n i18n; <BUG>private PostCompletedCommandsTask completedCommandsTask; @Override</BUG> public void onEnable() { GUIUtil.setPlugin(this); platform = new BukkitBuycraftPlatform(this);
private Client bugsnagClient; @Override
6,828
public void run() { AnalyticsUtil.postServerInformation(BuycraftPlugin.this); } }, 0, 20 * TimeUnit.DAYS.toSeconds(1)); } <BUG>Client bugsnagClient = new Client("cac4ea0fdbe89b5004d8ab8d5409e594", false); bugsnagClient.setAppVersion(getDescription().getVersion()); bugsnagClient.setLogger(new BugsnagNilLogger()); Bukkit.getLogger().addHandler(new BugsnagGlobalLoggingHandler(bugsnagClient, this)); getLogger().addHandler(new BugsnagLoggingHandler(bugsnagClient, this));</BUG> }
[DELETED]
6,829
import net.buycraft.plugin.execution.strategy.CommandExecutor; import net.buycraft.plugin.execution.strategy.PostCompletedCommandsTask; import net.buycraft.plugin.execution.strategy.QueuedCommandExecutor; import net.buycraft.plugin.shared.config.BuycraftConfiguration; import net.buycraft.plugin.shared.config.BuycraftI18n; <BUG>import net.buycraft.plugin.shared.util.Ipv4PreferDns; import net.md_5.bungee.api.plugin.Plugin;</BUG> import okhttp3.Cache; import okhttp3.Dispatcher; import okhttp3.OkHttpClient;
import net.buycraft.plugin.util.BugsnagNilLogger; import net.buycraft.plugin.util.BuycraftBeforeNotify; import net.md_5.bungee.api.plugin.Plugin;
6,830
import org.apache.commons.lang3.math.NumberUtils; import org.json.JSONException; import org.mariotaku.microblog.library.MicroBlog; import org.mariotaku.microblog.library.MicroBlogException; import org.mariotaku.microblog.library.twitter.model.RateLimitStatus; <BUG>import org.mariotaku.microblog.library.twitter.model.Status; import org.mariotaku.sqliteqb.library.AllColumns;</BUG> import org.mariotaku.sqliteqb.library.Columns; import org.mariotaku.sqliteqb.library.Columns.Column; import org.mariotaku.sqliteqb.library.Expression;
import org.mariotaku.pickncrop.library.PNCUtils; import org.mariotaku.sqliteqb.library.AllColumns;
6,831
context.getApplicationContext().sendBroadcast(intent); } } @Nullable public static Location getCachedLocation(Context context) { <BUG>if (BuildConfig.DEBUG) { Log.v(LOGTAG, "Fetching cached location", new Exception()); }</BUG> Location location = null;
DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
6,832
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); twitter.updateProfileBannerImage(fileBody); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.format("Unable to delete %s", file)); }</BUG> }
if (deleteImage) { Utils.deleteMedia(context, imageUri);
6,833
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); twitter.updateProfileBackgroundImage(fileBody, tile); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.format("Unable to delete %s", file)); }</BUG> }
twitter.updateProfileBannerImage(fileBody); if (deleteImage) { Utils.deleteMedia(context, imageUri);
6,834
FileBody fileBody = null; try { fileBody = getFileBody(context, imageUri); return twitter.updateProfileImage(fileBody); } finally { <BUG>Utils.closeSilently(fileBody); if (deleteImage && "file".equals(imageUri.getScheme())) { final File file = new File(imageUri.getPath()); if (!file.delete()) { Log.w(LOGTAG, String.format("Unable to delete %s", file)); }</BUG> }
twitter.updateProfileBannerImage(fileBody); if (deleteImage) { Utils.deleteMedia(context, imageUri);
6,835
import org.mariotaku.twidere.receiver.NotificationReceiver; import org.mariotaku.twidere.service.LengthyOperationsService; import org.mariotaku.twidere.util.ActivityTracker; import org.mariotaku.twidere.util.AsyncTwitterWrapper; import org.mariotaku.twidere.util.DataStoreFunctionsKt; <BUG>import org.mariotaku.twidere.util.DataStoreUtils; import org.mariotaku.twidere.util.ImagePreloader;</BUG> import org.mariotaku.twidere.util.InternalTwitterContentUtils; import org.mariotaku.twidere.util.JsonSerializer; import org.mariotaku.twidere.util.NotificationManagerWrapper;
import org.mariotaku.twidere.util.DebugLog; import org.mariotaku.twidere.util.ImagePreloader;
6,836
final List<InetAddress> addresses = mDns.lookup(host); for (InetAddress address : addresses) { c.addRow(new String[]{host, address.getHostAddress()}); } } catch (final IOException ignore) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, ignore); }</BUG> }
DebugLog.w(LOGTAG, null, ignore);
6,837
for (Location location : twitter.getAvailableTrends()) { map.put(location); } return map.pack(); } catch (final MicroBlogException e) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, e); }</BUG> }
DebugLog.w(LOGTAG, null, e);
6,838
import android.content.Context; import android.content.SharedPreferences; import android.location.Location; import android.os.AsyncTask; import android.support.annotation.NonNull; <BUG>import android.util.Log; import org.mariotaku.twidere.BuildConfig; import org.mariotaku.twidere.Constants; import org.mariotaku.twidere.util.JsonSerializer;</BUG> import org.mariotaku.twidere.util.Utils;
import org.mariotaku.twidere.util.DebugLog; import org.mariotaku.twidere.util.JsonSerializer;
6,839
} public static LatLng getCachedLatLng(@NonNull final Context context) { final Context appContext = context.getApplicationContext(); final SharedPreferences prefs = DependencyHolder.Companion.get(context).getPreferences(); if (!prefs.getBoolean(KEY_USAGE_STATISTICS, false)) return null; <BUG>if (BuildConfig.DEBUG) { Log.d(HotMobiLogger.LOGTAG, "getting cached location"); }</BUG> final Location location = Utils.getCachedLocation(appContext);
DebugLog.d(HotMobiLogger.LOGTAG, "getting cached location", null);
6,840
public int destroySavedSearchAsync(final UserKey accountKey, final long searchId) { final DestroySavedSearchTask task = new DestroySavedSearchTask(accountKey, searchId); return asyncTaskManager.add(task, true); } public int destroyStatusAsync(final UserKey accountKey, final String statusId) { <BUG>final DestroyStatusTask task = new DestroyStatusTask(context,accountKey, statusId); </BUG> return asyncTaskManager.add(task, true); } public int destroyUserListAsync(final UserKey accountKey, final String listId) {
final DestroyStatusTask task = new DestroyStatusTask(context, accountKey, statusId);
6,841
@Override public void afterExecute(Bus handler, SingleResponse<Relationship> result) { if (result.hasData()) { handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData())); } else if (result.hasException()) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, "Unable to update friendship", result.getException()); }</BUG> }
public UserKey[] getAccountKeys() { return DataStoreUtils.getActivatedAccountKeys(context);
6,842
MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId); if (!Utils.isOfficialCredentials(context, accountId)) continue; try { microBlog.setActivitiesAboutMeUnread(cursor); } catch (MicroBlogException e) { <BUG>if (BuildConfig.DEBUG) { Log.w(LOGTAG, e); }</BUG> }
DebugLog.w(LOGTAG, null, e);
6,843
} @RootTask static Task<Exec.Result> exec(String parameter, int number) { Task<String> task1 = MyTask.create(parameter); Task<Integer> task2 = Adder.create(number, number + 2); <BUG>return Task.ofType(Exec.Result.class).named("exec", "/bin/sh") .in(() -> task1)</BUG> .in(() -> task2) .process(Exec.exec((str, i) -> args("/bin/sh", "-c", "\"echo " + i + "\""))); }
return Task.named("exec", "/bin/sh").ofType(Exec.Result.class) .in(() -> task1)
6,844
return args; } static class MyTask { static final int PLUS = 10; static Task<String> create(String parameter) { <BUG>return Task.ofType(String.class).named("MyTask", parameter) .in(() -> Adder.create(parameter.length(), PLUS))</BUG> .in(() -> Fib.create(parameter.length())) .process((sum, fib) -> something(parameter, sum, fib)); }
return Task.named("MyTask", parameter).ofType(String.class) .in(() -> Adder.create(parameter.length(), PLUS))
6,845
final String instanceField = "from instance"; final TaskContext context = TaskContext.inmem(); final AwaitingConsumer<String> val = new AwaitingConsumer<>(); @Test public void shouldJavaUtilSerialize() throws Exception { <BUG>Task<Long> task1 = Task.ofType(Long.class).named("Foo", "Bar", 39) .process(() -> 9999L); Task<String> task2 = Task.ofType(String.class).named("Baz", 40) .in(() -> task1)</BUG> .ins(() -> singletonList(task1))
Task<Long> task1 = Task.named("Foo", "Bar", 39).ofType(Long.class) Task<String> task2 = Task.named("Baz", 40).ofType(String.class) .in(() -> task1)
6,846
assertEquals(des.id().name(), "Baz"); assertEquals(val.awaitAndGet(), "[9999] hello 10004"); } @Test(expected = NotSerializableException.class) public void shouldNotSerializeWithInstanceFieldReference() throws Exception { <BUG>Task<String> task = Task.ofType(String.class).named("WithRef") .process(() -> instanceField + " causes an outer reference");</BUG> serialize(task); } @Test
Task<String> task = Task.named("WithRef").ofType(String.class) .process(() -> instanceField + " causes an outer reference");
6,847
serialize(task); } @Test public void shouldSerializeWithLocalReference() throws Exception { String local = instanceField; <BUG>Task<String> task = Task.ofType(String.class).named("WithLocalRef") .process(() -> local + " won't cause an outer reference");</BUG> serialize(task); Task<String> des = deserialize(); context.evaluate(des).consume(val);
Task<String> task = Task.named("WithLocalRef").ofType(String.class) .process(() -> local + " won't cause an outer reference");
6,848
} @RootTask public static Task<String> standardArgs(int first, String second) { firstInt = first; secondString = second; <BUG>return Task.ofType(String.class).named("StandardArgs", first, second) .process(() -> second + " " + first * 100);</BUG> } @Test public void shouldParseFlags() throws Exception {
return Task.named("StandardArgs", first, second).ofType(String.class) .process(() -> second + " " + first * 100);
6,849
assertThat(parsedEnum, is(CustomEnum.BAR)); } @RootTask public static Task<String> enums(CustomEnum enm) { parsedEnum = enm; <BUG>return Task.ofType(String.class).named("Enums", enm) .process(enm::toString);</BUG> } @Test public void shouldParseCustomTypes() throws Exception {
return Task.named("Enums", enm).ofType(String.class) .process(enm::toString);
6,850
assertThat(parsedType.content, is("blarg parsed for you!")); } @RootTask public static Task<String> customType(CustomType myType) { parsedType = myType; <BUG>return Task.ofType(String.class).named("Types", myType.content) .process(() -> myType.content);</BUG> } public enum CustomEnum { BAR
return Task.named("Types", myType.content).ofType(String.class) .process(() -> myType.content);
6,851
TaskContext taskContext = TaskContext.inmem(); TaskContext.Value<Long> value = taskContext.evaluate(fib92); value.consume(f92 -> System.out.println("fib(92) = " + f92)); } static Task<Long> create(long n) { <BUG>TaskBuilder<Long> fib = Task.ofType(Long.class).named("Fib", n); </BUG> if (n < 2) { return fib .process(() -> n);
TaskBuilder<Long> fib = Task.named("Fib", n).ofType(Long.class);
6,852
import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicator.service.protocol.event.*; import net.java.sip.communicator.util.*; import net.java.sip.communicator.util.Logger; import org.jitsi.util.*; <BUG>import org.json.*; </BUG> public class ServerStoredContactListXivoImpl extends ServerStoredContactList implements Runnable
import org.json.simple.*;
6,853
logger.error("Error login authorization!"); return; } else if (classField.equals("login_pass_ok")) { <BUG>if(!sendCapas(incomingObject.getJSONArray("capalist"))) </BUG> logger.error("Error send capas!"); return; }
if(!sendCapas((JSONArray)incomingObject.get("capalist")))
6,854
if(connection == null || username == null) return false; JSONObject obj = new JSONObject(); try { <BUG>obj.accumulate("class","login_id"); obj.accumulate("company", "Jitsi"); </BUG> String os = "x11";
obj.put("class","login_id"); obj.put("company", "Jitsi");
6,855
String os = "x11"; if(OSUtils.IS_WINDOWS) os = "win"; else if(OSUtils.IS_MAC) os = "mac"; <BUG>obj.accumulate("ident", username + "@" + os); obj.accumulate("userid", username); obj.accumulate("version", "9999"); obj.accumulate("xivoversion", "1.1"); </BUG> return send(obj);
obj.put("ident", username + "@" + os); obj.put("userid", username); obj.put("version", "9999"); obj.put("xivoversion", "1.1");
6,856
catch (Exception e) { logger.error("Error login", e); return false; } <BUG>} private boolean authorize(String sessionId, String password)</BUG> { if(connection == null || sessionId == null || password == null) return false;
@SuppressWarnings("unchecked") private boolean authorize(String sessionId, String password)
6,857
if(connection == null || sessionId == null || password == null) return false; JSONObject obj = new JSONObject(); try { <BUG>obj.accumulate("class","login_pass"); obj.accumulate("hashedpassword", </BUG> Sha1Crypto.encode(sessionId + ":" + password));
obj.put("class","login_pass"); obj.put("hashedpassword",
6,858
if(connection == null || astid == null || xivoUserId == null) return false; JSONObject obj = new JSONObject(); try { <BUG>obj.accumulate("class","featuresget"); obj.accumulate("userid", astid + "/" + xivoUserId); </BUG> return send(obj);
obj.put("class","featuresget"); obj.put("userid", astid + "/" + xivoUserId);
6,859
catch (Exception e) { logger.error("Error send features get command", e); return false; } <BUG>} private boolean getPhoneList()</BUG> { JSONObject obj = new JSONObject(); try
@SuppressWarnings("unchecked") private boolean getPhoneList()
6,860
parentGroup.setPersistent(true); getRootGroup().addSubgroup(parentGroup); fireGroupEvent(parentGroup, ServerStoredGroupEvent.GROUP_CREATED_EVENT); } <BUG>String number = phone.getString("number"); </BUG> Address address = sipProvider.parseAddressString(number); ContactSipImpl contact =
String number = (String)phone.get("number");
6,861
parentOperationSet.resolveContactID(address.toString()); if(contact == null) { contact = new ContactSipImpl(address, sipProvider); contact.setDisplayName( <BUG>phone.getString("firstname") + " " + phone.getString("lastname")); contact.setResolved(true);</BUG> parentGroup.addContact(contact); fireContactAdded(parentGroup, contact);
phone.get("firstname") + " " + phone.get("lastname")); contact.setResolved(true);
6,862
package com.cronutils.model.time.generator; import java.util.Collections; <BUG>import java.util.List; import org.apache.commons.lang3.Validate;</BUG> import com.cronutils.model.field.CronField; import com.cronutils.model.field.expression.FieldExpression; public abstract class FieldValueGenerator {
import org.apache.commons.lang3.Validate; import org.apache.commons.lang3.Validate;
6,863
import java.util.ResourceBundle; import java.util.function.Function;</BUG> class DescriptionStrategyFactory { private DescriptionStrategyFactory() {} public static DescriptionStrategy daysOfWeekInstance(final ResourceBundle bundle, final FieldExpression expression) { <BUG>final Function<Integer, String> nominal = integer -> new DateTime().withDayOfWeek(integer).dayOfWeek().getAsText(bundle.getLocale()); </BUG> NominalDescriptionStrategy dow = new NominalDescriptionStrategy(bundle, nominal, expression); dow.addDescription(fieldExpression -> { if (fieldExpression instanceof On) {
import java.util.function.Function; import com.cronutils.model.field.expression.FieldExpression; import com.cronutils.model.field.expression.On; final Function<Integer, String> nominal = integer -> DayOfWeek.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale());
6,864
return dom; } public static DescriptionStrategy monthsInstance(final ResourceBundle bundle, final FieldExpression expression) { return new NominalDescriptionStrategy( bundle, <BUG>integer -> new DateTime().withMonthOfYear(integer).monthOfYear().getAsText(bundle.getLocale()), expression</BUG> ); } public static DescriptionStrategy plainInstance(ResourceBundle bundle, final FieldExpression expression) {
integer -> Month.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale()), expression
6,865
<BUG>package com.cronutils.model.time.generator; import com.cronutils.mapper.WeekDay;</BUG> import com.cronutils.model.field.CronField; import com.cronutils.model.field.CronFieldName; import com.cronutils.model.field.constraint.FieldConstraintsBuilder;
import java.time.LocalDate; import java.util.Collections; import java.util.List; import java.util.Set; import org.apache.commons.lang3.Validate; import com.cronutils.mapper.WeekDay;
6,866
import com.cronutils.model.field.expression.Between; import com.cronutils.model.field.expression.FieldExpression; import com.cronutils.parser.CronParserField; import com.google.common.collect.Lists; import com.google.common.collect.Sets; <BUG>import org.apache.commons.lang3.Validate; import org.joda.time.DateTime; import java.util.Collections; import java.util.List; import java.util.Set;</BUG> class BetweenDayOfWeekValueGenerator extends FieldValueGenerator {
[DELETED]
6,867
<BUG>package com.cronutils.model.time.generator; import com.cronutils.model.field.CronField;</BUG> import com.cronutils.model.field.CronFieldName; import com.cronutils.model.field.expression.FieldExpression; import com.cronutils.model.field.expression.On;
import java.time.DayOfWeek; import java.time.LocalDate; import java.util.List; import org.apache.commons.lang3.Validate; import com.cronutils.model.field.CronField;
6,868
import com.cronutils.model.field.CronField;</BUG> import com.cronutils.model.field.CronFieldName; import com.cronutils.model.field.expression.FieldExpression; import com.cronutils.model.field.expression.On; import com.google.common.collect.Lists; <BUG>import org.apache.commons.lang3.Validate; import org.joda.time.DateTime; import java.util.List;</BUG> class OnDayOfMonthValueGenerator extends FieldValueGenerator { private int year;
package com.cronutils.model.time.generator; import java.time.DayOfWeek; import java.time.LocalDate; import java.util.List; import com.cronutils.model.field.CronField;
6,869
class OnDayOfMonthValueGenerator extends FieldValueGenerator { private int year; private int month; public OnDayOfMonthValueGenerator(CronField cronField, int year, int month) { super(cronField); <BUG>Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of month"); this.year = year;</BUG> this.month = month; }
Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of" + " month"); this.year = year;
6,870
package com.cronutils.mapper; public class ConstantsMapper { private ConstantsMapper() {} public static final WeekDay QUARTZ_WEEK_DAY = new WeekDay(2, false); <BUG>public static final WeekDay JODATIME_WEEK_DAY = new WeekDay(1, false); </BUG> public static final WeekDay CRONTAB_WEEK_DAY = new WeekDay(1, true); public static int weekDayMapping(WeekDay source, WeekDay target, int weekday){ return source.mapTo(weekday, target);
public static final WeekDay JAVA8 = new WeekDay(1, false);
6,871
return nextMatch; } catch (NoSuchValueException e) { throw new IllegalArgumentException(e); } } <BUG>DateTime nextClosestMatch(DateTime date) throws NoSuchValueException { </BUG> List<Integer> year = yearsValueGenerator.generateCandidates(date.getYear(), date.getYear()); TimeNode days = null; int lowestMonth = months.getValues().get(0);
ZonedDateTime nextClosestMatch(ZonedDateTime date) throws NoSuchValueException {
6,872
boolean questionMarkSupported = cronDefinition.getFieldDefinition(DAY_OF_WEEK).getConstraints().getSpecialChars().contains(QUESTION_MARK); if(questionMarkSupported){ return new TimeNode( generateDayCandidatesQuestionMarkSupported( <BUG>date.getYear(), date.getMonthOfYear(), </BUG> ((DayOfWeekFieldDefinition) cronDefinition.getFieldDefinition(DAY_OF_WEEK) ).getMondayDoWValue()
date.getYear(), date.getMonthValue(),
6,873
) ); }else{ return new TimeNode( generateDayCandidatesQuestionMarkNotSupported( <BUG>date.getYear(), date.getMonthOfYear(), </BUG> ((DayOfWeekFieldDefinition) cronDefinition.getFieldDefinition(DAY_OF_WEEK) ).getMondayDoWValue()
date.getYear(), date.getMonthValue(),
6,874
} public DateTime lastExecution(DateTime date){ </BUG> Validate.notNull(date); try { <BUG>DateTime previousMatch = previousClosestMatch(date); </BUG> if(previousMatch.equals(date)){ previousMatch = previousClosestMatch(date.minusSeconds(1)); }
public java.time.Duration timeToNextExecution(ZonedDateTime date){ return java.time.Duration.between(date, nextExecution(date)); public ZonedDateTime lastExecution(ZonedDateTime date){ ZonedDateTime previousMatch = previousClosestMatch(date);
6,875
return previousMatch; } catch (NoSuchValueException e) { throw new IllegalArgumentException(e); } } <BUG>public Duration timeFromLastExecution(DateTime date){ return new Interval(lastExecution(date), date).toDuration(); } public boolean isMatch(DateTime date){ </BUG> return nextExecution(lastExecution(date)).equals(date);
[DELETED]
6,876
<BUG>package com.cronutils.model.time.generator; import com.cronutils.model.field.CronField;</BUG> import com.cronutils.model.field.expression.Every; import com.cronutils.model.field.expression.FieldExpression; import com.google.common.annotations.VisibleForTesting;
import java.time.ZonedDateTime; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.cronutils.model.field.CronField;
6,877
import com.cronutils.model.field.CronField;</BUG> import com.cronutils.model.field.expression.Every; import com.cronutils.model.field.expression.FieldExpression; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.Lists; <BUG>import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.List;</BUG> class EveryFieldValueGenerator extends FieldValueGenerator {
package com.cronutils.model.time.generator; import java.time.ZonedDateTime; import java.util.List; import com.cronutils.model.field.CronField;
6,878
private static final Logger log = LoggerFactory.getLogger(EveryFieldValueGenerator.class); public EveryFieldValueGenerator(CronField cronField) { super(cronField); log.trace(String.format( "processing \"%s\" at %s", <BUG>cronField.getExpression().asString(), DateTime.now() </BUG> )); } @Override
cronField.getExpression().asString(), ZonedDateTime.now()
6,879
import static org.neo4j.kernel.impl.ha.ClusterManager.clusterOfSize; @RunWith( Parameterized.class ) public class TestFailover { @Rule <BUG>public LoggerRule logger = new LoggerRule(); public TargetDirectory dir = TargetDirectory.forTest( getClass() ); </BUG> private int clusterSize; @Parameters( name = "clusterSize:{0}")
public TargetDirectory.TestDirectory dir = TargetDirectory.testDirForTest( getClass() );
6,880
import static org.neo4j.kernel.impl.ha.ClusterManager.masterAvailable; @RunWith( Parameterized.class ) public class TestFailoverWithAdditionalSlaveFailures { @Rule <BUG>public LoggerRule logger = new LoggerRule(); public TargetDirectory dir = TargetDirectory.forTest( getClass() ); </BUG> private int clusterSize; private int[] slavesToFail;
public TargetDirectory.TestDirectory dir = TargetDirectory.testDirForTest( getClass() );
6,881
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.auto.value.AutoValue; import org.graylog.autovalue.WithBeanGetter; import com.google.common.collect.ImmutableSet; <BUG>import org.graylog2.events.ClusterEventBus; import org.graylog2.indexer.indexset.IndexSetConfig;</BUG> import org.graylog2.indexer.indexset.IndexSetService; import org.graylog2.indexer.management.IndexManagementConfig; import org.graylog2.plugin.cluster.ClusterConfigService;
import org.graylog2.indexer.indexset.DefaultIndexSetConfig; import org.graylog2.indexer.indexset.IndexSetConfig;
6,882
final IndexSetConfig defaultIndexSetConfig = indexSetService.findAll().stream() .sorted(Comparator.comparing(IndexSetConfig::creationDate)) .findFirst() .orElseThrow(() -> new IllegalStateException("Unable to find any index set - this should not happen!")); LOG.info("Setting index set <{}> as default", defaultIndexSetConfig.id()); <BUG>indexSetService.save(defaultIndexSetConfig.toBuilder().isDefault(true).build()); clusterConfigService.write(MigrationCompleted.create(updatedIds.build(), skippedIds.build(), defaultIndexSetConfig.id()));</BUG> } @JsonAutoDetect @AutoValue
clusterConfigService.write(DefaultIndexSetConfig.create(defaultIndexSetConfig.id())); clusterConfigService.write(MigrationCompleted.create(updatedIds.build(), skippedIds.build(), defaultIndexSetConfig.id()));
6,883
import java.util.Set; public interface IndexSetRegistry extends Iterable<IndexSet> { Set<IndexSet> getAllIndexSets(); Optional<IndexSet> get(String indexSetId); Optional<IndexSet> getForIndexName(String indexName); <BUG>Optional<IndexSet> getDefault(); String[] getManagedIndicesNames();</BUG> boolean isManagedIndex(String indexName); String[] getWriteIndexWildcards(); String[] getWriteIndexNames();
IndexSet getDefault(); String[] getManagedIndicesNames();
6,884
import org.graylog2.indexer.indices.TooManyAliasesException; import org.graylog2.indexer.ranges.CreateNewSingleIndexRangeJob; import org.graylog2.indexer.ranges.IndexRange; import org.graylog2.indexer.ranges.IndexRangeService; import org.slf4j.Logger; <BUG>import org.slf4j.LoggerFactory; import java.time.ZonedDateTime; import java.util.Optional;</BUG> import java.util.Set; import java.util.concurrent.TimeoutException;
import javax.inject.Inject;
6,885
@NotBlank public abstract String title(); @JsonProperty("description") @Nullable public abstract String description(); <BUG>@JsonProperty("default") public abstract boolean isDefault();</BUG> @JsonProperty("writable") public abstract boolean isWritable(); @JsonProperty(FIELD_INDEX_PREFIX)
[DELETED]
6,886
import java.util.List; import java.util.Optional; import java.util.Set; public interface IndexSetService { Optional<IndexSetConfig> get(ObjectId id); <BUG>Optional<IndexSetConfig> get(String id); Optional<IndexSetConfig> findOne(DBQuery.Query query);</BUG> List<IndexSetConfig> findAll(); List<IndexSetConfig> findPaginated(Set<String> indexSetIds, int limit, int skip); IndexSetConfig save(IndexSetConfig indexSetConfig);
IndexSetConfig getDefault(); Optional<IndexSetConfig> findOne(DBQuery.Query query);
6,887
} catch (NotFoundException ignored) { createDefaultStream(); } } private void createDefaultStream() { <BUG>final IndexSet indexSet = indexSetRegistry.getDefault() .orElseThrow(() -> new IllegalStateException("Couldn't find default index set! This is a bug!"));</BUG> final ObjectId id = new ObjectId(Stream.DEFAULT_STREAM_ID); final Map<String, Object> fields = ImmutableMap.<String, Object>builder()
final IndexSet indexSet = indexSetRegistry.getDefault();
6,888
import org.bson.types.ObjectId; import org.graylog2.bindings.providers.MongoJackObjectMapperProvider; import org.graylog2.database.MongoConnection; import org.graylog2.events.ClusterEventBus; import org.graylog2.indexer.indexset.events.IndexSetCreatedEvent; <BUG>import org.graylog2.indexer.indexset.events.IndexSetDeletedEvent; import org.graylog2.streams.StreamService;</BUG> import org.mongojack.DBQuery; import org.mongojack.DBSort; import org.mongojack.JacksonDBCollection;
import org.graylog2.plugin.cluster.ClusterConfigService; import org.graylog2.streams.StreamService;
6,889
package com.vaadin.addon.charts.model.junittests; import static com.vaadin.addon.charts.util.ChartSerialization.toJSON; <BUG>import static org.junit.Assert.assertEquals; import java.util.ArrayList;</BUG> import java.util.Calendar; import java.util.Collection; import java.util.Date;
import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; import java.util.ArrayList;
6,890
import com.vaadin.addon.charts.model.serializers.AxisListSerializer; import com.vaadin.addon.charts.model.serializers.ChartEnumSerializer; import com.vaadin.addon.charts.model.serializers.ChartOptionsBeanSerializerModifier; import com.vaadin.addon.charts.model.serializers.DateSerializer; import com.vaadin.addon.charts.model.serializers.DefaultBeanSerializerModifier; <BUG>import com.vaadin.addon.charts.model.serializers.GradientColorStopsSerializer; import com.vaadin.addon.charts.model.serializers.PaneListSerializer;</BUG> import com.vaadin.addon.charts.model.serializers.SolidColorSerializer; import com.vaadin.addon.charts.model.serializers.StopSerializer; import com.vaadin.addon.charts.model.serializers.TimeUnitMultiplesSerializer;
import com.vaadin.addon.charts.model.serializers.InstantSerializer; import com.vaadin.addon.charts.model.serializers.PaneListSerializer;
6,891
.registerModule(TimeUnitMultiplesSerializer.getModule()) .registerModule(SolidColorSerializer.getModule()) .registerModule(GradientColorStopsSerializer.getModule()) .registerModule(AxisListSerializer.getModule()) .registerModule(PaneListSerializer.getModule()) <BUG>.registerModule(DateSerializer.getModule()); return mapper.setSerializerFactory(mapper.getSerializerFactory()</BUG> .withSerializerModifier(modifier)); } public static void setObjectMapperInstance(ObjectWriter newObjectWriter) {
.registerModule(DateSerializer.getModule()) .registerModule(InstantSerializer.getModule()); return mapper.setSerializerFactory(mapper.getSerializerFactory()
6,892
chart.drawChart(configuration); chart.addChartClickListener(new ChartClickListener() { @Override public void onClick(ChartClickEvent event) { Notification.show("Clicked @ " <BUG>+ Util.toServerDate(timeStampShiftedToUc)); </BUG> } }); chart.addPointClickListener(new PointClickListener() {
+ Util.toServerInstant(timeStampShiftedToUc));
6,893
package com.vaadin.addon.charts.examples.lineandscatter; import static com.vaadin.addon.charts.model.Shape.CIRCLE; import static com.vaadin.addon.charts.model.VerticalAlign.MIDDLE; <BUG>import static com.vaadin.addon.charts.model.style.FontWeight.BOLD; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import com.vaadin.addon.charts.Chart;</BUG> import com.vaadin.addon.charts.examples.AbstractVaadinChartExample;
import java.time.Instant; import java.time.LocalDate; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeParseException; import com.vaadin.addon.charts.Chart;
6,894
import com.vaadin.addon.charts.model.style.Style; import com.vaadin.ui.Component; @SkipFromDemo public class SplineWithItemLabels extends AbstractVaadinChartExample { private final int ONE_HOUR = 60 * 60 * 1000; <BUG>private final DateFormat df = new SimpleDateFormat("yyyy,MM,dd"); @Override</BUG> public String getDescription() { return "Spline With Labels in last item"; }
private final DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy,MM,dd"); @Override
6,895
yAxis.setTitle(new AxisTitle("Wind speed (m/s)")); PlotOptionsSpline plotOptions = new PlotOptionsSpline(); configuration.setPlotOptions(plotOptions); plotOptions.setMarker(new Marker(false)); plotOptions.setPointInterval(ONE_HOUR); <BUG>plotOptions.setPointStart(toDate("2009,9,6")); </BUG> DataSeries ds = new DataSeries(); ds.setName("Hestavollane"); ds.setData(4.3, 5.1, 4.3, 5.2, 5.4, 4.7, 3.5, 4.1, 5.6, 7.4, 6.9, 7.1,
plotOptions.setPointStart(toDate("2009,09,06"));
6,896
return value; } } @Override public String getDescription() { <BUG>return "Simple Chart with ContainerSeries"; </BUG> } @Override protected Component getChart() {
return "Simple Chart with ChartDataSeries";
6,897
<BUG>package com.vaadin.addon.charts.examples.dynamic; import com.vaadin.addon.charts.Chart;</BUG> import com.vaadin.addon.charts.ChartSelectionEvent; import com.vaadin.addon.charts.ChartSelectionListener; import com.vaadin.addon.charts.examples.AbstractVaadinChartExample;
import java.time.LocalDate; import java.time.ZoneOffset; import java.util.ArrayList; import java.util.List; import com.vaadin.addon.charts.Chart;
6,898
0.7927, 0.7918, 0.7919, 0.7989, 0.7988, 0.7949, 0.7948, 0.7882, 0.7745, 0.771, 0.775, 0.7791, 0.7882, 0.7882, 0.7899, 0.7905, 0.7889, 0.7879, 0.7855, 0.7866, 0.7865, 0.7795, 0.7758, 0.7717, 0.761, 0.7497, 0.7471, 0.7473, 0.7407, 0.7288, 0.7074, 0.6927, 0.7083, 0.7191, 0.719, 0.7153, 0.7156, 0.7158, 0.714, 0.7119, <BUG>0.7129, 0.7129, 0.7049, 0.7095 }; private static final long DAY_IN_MILLIS = 24 * 60 * 60 * 1000;</BUG> @Override public String getDescription() { return "Time Series Zoomable";
0.7129, 0.7129, 0.7049, 0.7095}; private static final long DAY_IN_MILLIS = 24 * 60 * 60 * 1000;
6,899
return lo; } private List<Number> getPartialList(long start, long end) { List<Number> list = new ArrayList<Number>(); for (int i = 0; i < FULL_DEMO_DATA_SET.length; i++) { <BUG>long dataTimeStamp = Util.toHighchartsTS(DEMO_DATASET_START) + i </BUG> if (dataTimeStamp > start && dataTimeStamp < end) { list.add(FULL_DEMO_DATA_SET[i]); }
long dataTimeStamp = Util.toHighchartsTS(DEMO_DATASET_START.atStartOfDay().toInstant(ZoneOffset.UTC)) + i
6,900
marker.setRadius(2); series.setAnimation(false); ListSeries seriesList = new ListSeries(); PlotOptionsLine plotOptionsLine = new PlotOptionsLine(); plotOptionsLine.setPointInterval(DAY_IN_MILLIS); <BUG>plotOptionsLine.setPointStart(Util.toHighchartsTS(DEMO_DATASET_START)); </BUG> seriesList.setPlotOptions(plotOptionsLine); seriesList.setName("USD to EUR"); seriesList.setData(FULL_DEMO_DATA_SET);
plotOptionsLine.setPointStart(Util.toHighchartsTS(DEMO_DATASET_START.atStartOfDay().toInstant(ZoneOffset.UTC)));