File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
rewrite-core/src/main/java/org/openrewrite/rpc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ private <P> String maybeUnwrapExecutionContext(P p) {
154154 while (p2 instanceof DelegatingExecutionContext ) {
155155 p2 = ((DelegatingExecutionContext ) p2 ).getDelegate ();
156156 }
157- String pId = localObjectIds .computeIfAbsent (p2 , p3 -> Long . toString ( SnowflakeId .generateId () ));
157+ String pId = localObjectIds .computeIfAbsent (p2 , p3 -> SnowflakeId .generateId ());
158158 if (p2 instanceof ExecutionContext ) {
159159 ((ExecutionContext ) p2 ).putMessage ("org.openrewrite.rpc.id" , pId );
160160 }
@@ -188,7 +188,7 @@ List<String> getCursorIds(@Nullable Cursor cursor) {
188188 cursorIds = cursor .getPathAsStream ().map (c -> {
189189 String id = c instanceof Tree ?
190190 ((Tree ) c ).getId ().toString () :
191- localObjectIds .computeIfAbsent (c , c2 -> Long . toString ( SnowflakeId .generateId () ));
191+ localObjectIds .computeIfAbsent (c , c2 -> SnowflakeId .generateId ());
192192 localObjects .put (id , c );
193193 return id ;
194194 }).collect (Collectors .toList ());
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static class Handler extends JsonRpcMethod<PrepareRecipe> {
3737 @ Override
3838 protected Object handle (PrepareRecipe request ) throws Exception {
3939 Recipe recipe = new RecipeLoader (null ).load (request .getId (), request .getOptions ());
40- String instanceId = Long . toString ( SnowflakeId .generateId () );
40+ String instanceId = SnowflakeId .generateId ();
4141 preparedRecipes .put (instanceId , recipe );
4242 return new PrepareRecipeResponse (instanceId , recipe .getDescriptor (),
4343 "edit:" + instanceId ,
You can’t perform that action at this time.
0 commit comments