- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Gson g =
new Gson()
GsonBuilder gsonBuilder;gsonBuilder.create()
new GsonBuilder().create()
- Smart code suggestions by Codota
}
static SourceSection findNearest(Source source, SourceElement[] sourceElements, int line, int column, SuspendAnchor anchor, TruffleInstrument.Env env) { int boundLine = line; int boundColumn = column; int maxLine = source.getLineCount(); if (boundLine > maxLine) { boundLine = maxLine; } int maxColumn = source.getLineLength(boundLine) + 1; if (boundColumn > maxColumn) { boundColumn = maxColumn; } return findNearestBound(source, getElementTags(sourceElements), boundLine, boundColumn, anchor, env); }
static SourceSection findNearest(Source source, SourceElement[] sourceElements, int line, int column, SuspendAnchor anchor, TruffleInstrument.Env env) { if (!source.hasCharacters()) { return null; } int boundLine = line; int boundColumn = column; int maxLine = source.getLineCount(); if (boundLine > maxLine) { boundLine = maxLine; } int maxColumn = source.getLineLength(boundLine) + 1; if (boundColumn > maxColumn) { boundColumn = maxColumn; } return findNearestBound(source, getElementTags(sourceElements), boundLine, boundColumn, anchor, env); }