This hanjie is a linea, that means:
Each black box has exactly two black direct neighboring boxes, except for the two "ends" which have only one black direct neighboring box.
We cannot therefore have either squares of four black squares, nor "T" (not allowed: ├ ┬ ├ ┴ ■ )
Warning: sometimes a linea may not be as logical as an hanjie, but only if we add the constraint described above.
Attention, here is a more difficult linea, you can't solve it only with reasoning on the edges, you need to analyze the possible position of the long traits inside, so that there are no any "T".