@ SuppressWarnings ( "unchecked" ) public < T extends StatementDocument > T nullEdit ( T currentDocument ) throws IOException , MediaWikiApiErrorException { StatementUpdate statementUpdate = new StatementUpdate ( currentDocument , Collections . < Statement > emptyList ( ) , Collections . < Statement > emptyList ( ) ) ; statementUpdate . setGuidGenerator ( guidGenerator ) ; return ( T ) this . wbEditingAction . wbEditEntity ( currentDocument . getEntityId ( ) . getId ( ) , null , null , null , statementUpdate . getJsonUpdateString ( ) , false , this . editAsBot , currentDocument . getRevisionId ( ) , null ) ; }
Performs a null edit on an entity . This has some effects on Wikibase such as refreshing the labels of the referred items in the UI .