This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Doh { | |
public static void main(String[] args) throws Exception { | |
Person p = new Person("Name"); | |
setName(p, "New Name"); | |
setDefault("Bob"); | |
System.out.println(p.getName()); | |
System.out.println(Person.DEFAULT); | |
} | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static extension Throwables.* | |
val uri = [| new URI(requestURI) ].onException [ | |
new IllegalArgumentException(it) | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.eclipse.emf.ecore.EObject; | |
import org.eclipse.xtext.xbase.XAbstractFeatureCall; | |
import org.eclipse.xtext.xbase.XFeatureCall; | |
import org.eclipse.xtext.xbase.XMemberFeatureCall; | |
import org.eclipse.xtext.xbase.XNullLiteral; | |
import org.eclipse.xtext.xbase.XUnaryOperation; | |
import org.eclipse.xtext.xbase.XbaseFactory; | |
import com.google.caliper.Param; | |
import com.google.caliper.Runner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=>(target=ID '.' feature=ID '=') value=Expression |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (condition) | |
if (condition) | |
someAction(); | |
else | |
otherAction(); | |
// or | |
if (condition) | |
if (condition) |
NewerOlder