@@ -196,9 +196,9 @@ public TrialShareController()
196196 @ RequiresPermission (ReadPermission .class )
197197 public class BeginAction extends SimpleViewAction
198198 {
199- public NavTree appendNavTrail (NavTree root )
199+ @ Override
200+ public void addNavTrail (NavTree root )
200201 {
201- return root ;
202202 }
203203
204204 @ Override
@@ -564,6 +564,7 @@ public class TrialShareExportAction extends MutatingApiAction<TrialShareExportFo
564564 {
565565 private ActionURL _successURL ;
566566
567+ @ Override
567568 public ApiResponse execute (TrialShareExportForm form , BindException errors ) throws Exception
568569 {
569570 // JSONObject json = form.getJsonObject();
@@ -772,9 +773,9 @@ public URLHelper getSuccessURL(CubeAdminForm form)
772773 }
773774
774775 @ Override
775- public NavTree appendNavTrail (NavTree root )
776+ public void addNavTrail (NavTree root )
776777 {
777- return root .addChild ("Data Cube Administration" );
778+ root .addChild ("Data Cube Administration" );
778779 }
779780 }
780781
@@ -966,15 +967,16 @@ public Object execute(Object o, BindException errors) throws Exception
966967 @ RequiresPermission (ReadPermission .class )
967968 public class DataFinderAction extends SimpleViewAction
968969 {
970+ @ Override
969971 public ModelAndView getView (Object o , BindException errors ) throws Exception
970972 {
971973 setTitle ("Data Finder" );
972974 return new DataFinderWebPart (getContainer ());
973975 }
974976
975- public NavTree appendNavTrail (NavTree root )
977+ @ Override
978+ public void addNavTrail (NavTree root )
976979 {
977- return root ;
978980 }
979981 }
980982
@@ -1293,9 +1295,8 @@ public ModelAndView getView(StudyIdForm form, BindException errors) throws Excep
12931295 }
12941296
12951297 @ Override
1296- public NavTree appendNavTrail (NavTree root )
1298+ public void addNavTrail (NavTree root )
12971299 {
1298- return root ;
12991300 }
13001301 }
13011302
@@ -1537,9 +1538,9 @@ public ModelAndView getView(CubeObjectNameForm form, BindException errors) throw
15371538 }
15381539
15391540 @ Override
1540- public NavTree appendNavTrail (NavTree root )
1541+ public void addNavTrail (NavTree root )
15411542 {
1542- return root .addChild ("Manage Data" );
1543+ root .addChild ("Manage Data" );
15431544 }
15441545 }
15451546
@@ -1723,6 +1724,7 @@ public void setObjectName(String name)
17231724 }
17241725 }
17251726
1727+ @ Override
17261728 public void validate (Errors errors )
17271729 {
17281730 if (getObjectName () == null )
@@ -1733,6 +1735,7 @@ public void validate(Errors errors)
17331735 @ RequiresPermission (InsertPermission .class )
17341736 public class InsertDataFormAction extends CubeObjectDetailFormAction
17351737 {
1738+ @ Override
17361739 protected String getMode ()
17371740 {
17381741 return "insert" ;
@@ -1743,6 +1746,7 @@ protected String getMode()
17431746 @ RequiresPermission (UpdatePermission .class )
17441747 public class UpdateDataAction extends CubeObjectDetailFormAction
17451748 {
1749+ @ Override
17461750 protected String getMode ()
17471751 {
17481752 return "update" ;
@@ -1752,6 +1756,7 @@ protected String getMode()
17521756 @ RequiresPermission (ReadPermission .class )
17531757 public class ViewDataAction extends CubeObjectDetailFormAction
17541758 {
1759+ @ Override
17551760 protected String getMode ()
17561761 {
17571762 return "view" ;
@@ -1806,7 +1811,7 @@ public ModelAndView getView(CubeObjectDetailForm bean, BindException errors) thr
18061811 }
18071812
18081813 @ Override
1809- public NavTree appendNavTrail (NavTree root )
1814+ public void addNavTrail (NavTree root )
18101815 {
18111816 String name = getViewContext ().getActionURL ().getParameter ("objectName" );
18121817 if (name != null )
@@ -1819,7 +1824,8 @@ public NavTree appendNavTrail(NavTree root)
18191824 }
18201825 catch (IllegalArgumentException ignore ) {} // Don't throw because of bad user input
18211826 }
1822- return (root .hasChildren () ? root : root .addChild (StringUtils .capitalize (getMode ()) + " Data" ));
1827+ if (!root .hasChildren ())
1828+ root .addChild (StringUtils .capitalize (getMode ()) + " Data" );
18231829 }
18241830 }
18251831
0 commit comments