This file contains 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 org.junit.Assert.assertTrue; | |
import org.jboss.arquillian.junit.Arquillian; | |
import org.jboss.forge.parser.JavaParser; | |
import org.jboss.forge.parser.java.JavaClass; | |
import org.jboss.forge.test.AbstractShellTest; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; |
This file contains 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
package it.coopservice.ucsmail.model; | |
import javax.persistence.Entity; | |
import java.io.Serializable; | |
import javax.persistence.Id; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Column; | |
import javax.persistence.Version; | |
import java.lang.Override; |
This file contains 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
package it.coopservice.ucsmail.model; | |
import javax.persistence.Entity; | |
import java.io.Serializable; | |
import javax.persistence.Id; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Column; | |
import javax.persistence.Version; | |
import java.lang.Override; |
This file contains 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 java.util.List; | |
import org.jboss.arquillian.junit.Arquillian; | |
import org.jboss.forge.parser.JavaParser; | |
import org.jboss.forge.parser.java.JavaClass; | |
import org.jboss.forge.parser.java.Method; | |
import org.jboss.forge.test.AbstractShellTest; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; |
This file contains 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
*********BEFORE********** | |
******************************** | |
package it.coopservice.consulenti.model; | |
import javax.persistence.Entity; | |
import javax.persistence.Column; | |
import java.io.Serializable; | |
@Entity | |
public class Responsabile implements Serializable |
This file contains 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 static void setGenericType(String genericType, BodyDeclaration body, CompilationUnit unit) | |
{ | |
String className = ((AbstractTypeDeclaration) body).getName().getIdentifier(); | |
if (className != null && !className.isEmpty()) | |
{ | |
TypeParameter tp2 = unit.getAST().newTypeParameter(); | |
tp2.setName(unit.getAST().newSimpleName(genericType)); | |
TypeDeclaration td = unit.getAST().newTypeDeclaration(); | |
td.setName(unit.getAST().newSimpleName(className)); | |
td.typeParameters().add(tp2); |
This file contains 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 static void setGenericType(String genericType, BodyDeclaration body, CompilationUnit unit) | |
{ | |
String className = ((AbstractTypeDeclaration) body).getName().getIdentifier(); | |
if (className != null && !className.isEmpty()) | |
{ | |
TypeDeclaration type = (TypeDeclaration) body; | |
TypeParameter tp2 = unit.getAST().newTypeParameter(); | |
tp2.setName(unit.getAST().newSimpleName(genericType)); | |
type.typeParameters().add(tp2); |
This file contains 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
package org.jboss.forge.test.parser.java.flower; | |
import static org.junit.Assert.assertTrue; | |
import org.jboss.forge.parser.JavaParser; | |
import org.jboss.forge.parser.java.JavaClass; | |
import org.junit.Test; | |
public class TestOnGenerics | |
{ |
This file contains 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
package it.flower; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.jboss.jandex.Indexer; | |
import org.jboss.jandex.JarIndexer; | |
import org.jboss.jandex.Main; |
This file contains 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
<dependencies> | |
<dependency> | |
<groupId>com.twilio.sdk</groupId> | |
<artifactId>twilio-java-sdk</artifactId> | |
<version>${twilio.sdk.version}</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.twiliofaces</groupId> | |
<artifactId>twiliofaces</artifactId> |
OlderNewer