diff --git a/lib/manager/maven/update.ts b/lib/manager/maven/update.ts
index 050ca22bb6f3abb3ce247a1906ce5f65ecbbf6f3..26b4500ee160a94954434392556b90cc63bdcdaa 100644
--- a/lib/manager/maven/update.ts
+++ b/lib/manager/maven/update.ts
@@ -4,7 +4,7 @@ import { UpdateDependencyConfig, Upgrade } from '../common';
 export function updateAtPosition(
   fileContent: string,
   upgrade: Upgrade,
-  endingAnchor = '"'
+  endingAnchor: string
 ): string | null {
   const { depName, currentValue, newValue, fileReplacePosition } = upgrade;
   const leftPart = fileContent.slice(0, fileReplacePosition);