Skip to content

Commit

Permalink
add < to java.util.Optional getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hall committed Sep 23, 2014
1 parent 987b6f6 commit 3e95b53
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.squareup.intellij.plugins.builder;

import com.google.common.collect.Maps;
import com.intellij.openapi.projectRoots.ProjectJdkTable;
import com.intellij.psi.JavaPsiFacade;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiElementFactory;
Expand All @@ -27,7 +28,7 @@ public class GettersGenerator implements BuilderGenerator {
StringBuilder getterStatement = new StringBuilder();
if (entry.isNullable()) {
StringBuilder optionalBuilder = new StringBuilder()
.append("java.util.Optional")
.append("java.util.Optional<")
.append(field.getType().getCanonicalText())
.append(">");
PsiType optionalType = elementFactory.createTypeFromText(
Expand Down

0 comments on commit 3e95b53

Please sign in to comment.