rewrite icon indicating copy to clipboard operation
rewrite copied to clipboard

Distributed code search and refactoring for Java

Results 15 rewrite issues
Sort by recently updated
recently updated
newest added

I tried to run the provided example, but it gives me errors. My code- ``` import com.netflix.rewrite.ast.*; import com.netflix.rewrite.parse.*; import com.netflix.rewrite.refactor.*; public class MainClass { public static void main(String[] args)...

See https://github.com/pgjdbc/pgjdbc/pull/1730

![image](https://user-images.githubusercontent.com/726970/76142094-7dde6100-60be-11ea-9e57-26ca294fd278.png) This happens after i click "yes" to share various github details. Im guessing that somehow i must be invited or something.

Looking at the Refactor class there doesnt appear to be a method that would support changing the package declaration for a given `CompilationUnit`. Im going to guess this might be...

![Uploading Screenshot from 2019-03-09 23-49-40.png…]()

The parenthesis-heavy code is often hard to reason about. For instance: ```java literals.add((RexLiteral) rexBuilder.makeLiteral( BigDecimal.ZERO, aggregateCall.getType(), false)); ``` Even though this code might look OK, there's a readability issue. It...

Hello, Thank you for this tool. I am trying a modified version of the sample from the wiki section, [here](https://github.com/Netflix-Skunkworks/rewrite/wiki/Changing-Types), doing as follows: 1. Store the original code into a...

Hi, Thanks for making this awesome tool! To start, I ran into this one issue. If I do ``` changeType("com.example.util.collection.Optional", "com.google.common.base.Optional") ``` The result looks like: ``` -import com.example.util.collection.Optional; +import...

I'm having these classes: ```java package com.a; public class A { public void foo() {} } ``` ```java package com.a; public class AFactory { public static A make() { return...