@@ -956,7 +956,7 @@ private void validateNoLocationOverlap(
956956 // namespaces
957957 Optional <NamespaceEntity > parentNamespace =
958958 parentPath .size () > 1
959- ? Optional .of (NamespaceEntity .of (parentPath .get ( parentPath . size () - 1 )))
959+ ? Optional .of (NamespaceEntity .of (parentPath .getLast ( )))
960960 : Optional .empty ();
961961
962962 List <TableIdentifier > siblingTables =
@@ -1001,7 +1001,7 @@ private void validateNoLocationOverlap(
10011001 siblingTables .size () + siblingNamespaces .size ());
10021002 PolarisResolutionManifest resolutionManifest =
10031003 new PolarisResolutionManifest (
1004- callContext , entityManager , authenticatedPrincipal , parentPath .get ( 0 ).getName ());
1004+ callContext , entityManager , authenticatedPrincipal , parentPath .getFirst ( ).getName ());
10051005 siblingTables .forEach (
10061006 tbl ->
10071007 resolutionManifest .addPath (
@@ -1177,7 +1177,7 @@ public void doCommit(TableMetadata base, TableMetadata metadata) {
11771177 resolvedTableEntities == null
11781178 ? resolvedEntityView .getResolvedPath (tableIdentifier .namespace ()).getRawFullPath ()
11791179 : resolvedTableEntities .getRawParentPath ();
1180- CatalogEntity catalog = CatalogEntity .of (resolvedNamespace .get ( 0 ));
1180+ CatalogEntity catalog = CatalogEntity .of (resolvedNamespace .getFirst ( ));
11811181
11821182 if (base == null || !metadata .location ().equals (base .location ())) {
11831183 // If location is changing then we must validate that the requested location is valid
@@ -1817,7 +1817,7 @@ private boolean sendNotificationForTableLike(
18171817
18181818 // finally, validate that the metadata file is within the table directory
18191819 validateMetadataFileInTableDir (
1820- tableIdentifier , tableMetadata , CatalogEntity .of (resolvedParent .getRawFullPath ().get ( 0 )));
1820+ tableIdentifier , tableMetadata , CatalogEntity .of (resolvedParent .getRawFullPath ().getFirst ( )));
18211821
18221822 // TODO: These might fail due to concurrent update; we need to do a retry in those cases.
18231823 if (null == existingLocation ) {
0 commit comments