Source:
<code>public List<Task<? extends Serializable>> handle(Context context) throws SemanticException { AlterTableMessage msg = deserializer.getAlterTableMessage(context.dmd.getPayload()); if (!context.isTableNameEmpty()) { throw new SemanticException( "RENAMES of tables are not supported for table-level replication"); } try { String oldDbName = msg.getTableObjBefore().getDbName(); String newDbName = msg.getTableObjAfter().getDbName(); if (!context.isDbNameEmpty()) { if (!oldDbName.equalsIgnoreCase(newDbName)) { throw new SemanticException("Cannot replicate an event renaming a table across" + " databases into a db level load " + oldDbName + "->" + newDbName); } else { oldDbName = context.dbName; newDbName = context.dbName; } } String oldName = oldDbName + "." + msg.getTableObjBefore().getTableName(); String newName = newDbName + "." + msg.getTableObjAfter().getTableName(); AlterTableDesc renameTableDesc = new AlterTableDesc(oldName, newName, false, eventOnlyReplicationSpec(context)); Task<DDLWork> renameTableTask = TaskFactory.get( new DDLWork(readEntitySet, writeEntitySet, renameTableDesc), context.hiveConf); <START> context.log.debug("Added rename table task : {}:{}->{}", renameTableTask.getId(), oldName, newName); <END> databasesUpdated.put(newDbName, context.dmd.getEventTo()); tablesUpdated.remove(oldName); tablesUpdated.put(newName, context.dmd.getEventTo()); return Collections.singletonList(renameTableTask); } catch (Exception e) { throw (e instanceof SemanticException) ? (SemanticException) e : new SemanticException("Error reading message members", e); } }</code><technical_language>i code width moves 100 characters, want format</technical_language>

Target:
public List<Task<? extends Serializable>> handle(Context context) throws SemanticException { AlterTableMessage msg = deserializer.getAlterTableMessage(context.dmd.getPayload()); if (!context.isTableNameEmpty()) { throw new SemanticException( "RENAMES of tables are not supported for table-level replication"); } try { String oldDbName = msg.getTableObjBefore().getDbName(); String newDbName = msg.getTableObjAfter().getDbName(); if (!context.isDbNameEmpty()) { if (!oldDbName.equalsIgnoreCase(newDbName)) { throw new SemanticException("Cannot replicate an event renaming a table across" + " databases into a db level load " + oldDbName + "->" + newDbName); } else { oldDbName = context.dbName; newDbName = context.dbName; } } String oldName = oldDbName + "." + msg.getTableObjBefore().getTableName(); String newName = newDbName + "." + msg.getTableObjAfter().getTableName(); AlterTableDesc renameTableDesc = new AlterTableDesc( oldName, newName, false, context.eventOnlyReplicationSpec()); Task<DDLWork> renameTableTask = TaskFactory.get( new DDLWork(readEntitySet, writeEntitySet, renameTableDesc), context.hiveConf); context.log.debug("Added rename table task : {}:{}->{}", renameTableTask.getId(), oldName, newName); databasesUpdated.put(newDbName, context.dmd.getEventTo()); tablesUpdated.remove(oldName); tablesUpdated.put(newName, context.dmd.getEventTo()); return Collections.singletonList(renameTableTask); } catch (Exception e) { throw (e instanceof SemanticException) ? (SemanticException) e : new SemanticException("Error reading message members", e); } }